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