private static string Repeat(string text, int count) { if (count == 0) return string.Empty; if (count == 1) return text; var b = new StringBuilder(text.Length*count); for (var i = 0; i < count; i++) b.Append(text); return b.ToString(); }