private string Repeat(string s, int num) { string ret = ""; for (int i = 0; i < num; i++) { ret += s; } return ret; }