public static string AddNewLine(string inString,int num,string addString=" ") { return Regex.Replace(inString, string.Format(@".{{{0}}}", num), "$0"+addString); }