public static string ToSingleLine(this string str) { return str.TrimToEmpty().Replace("\r\n", " ").Replace("\n", " ").Trim(); }