How can I fill a string with a specific character like make string and length like (y,4) and the result is yyyy I know there is something like in c++, fillstring Is that exist
Just use the appropriate constructor:
string text = new string('y', 4);