public static string Escape(string str) { if (str.CompareTo(@"\n") != 0) { str = Regex.Escape(str); } return str; }