Pretty common question. Here you go:
string str = new string('x', 5);
Vitaly Zayko
Mobile Solutions Architect
Moscow, Russia