public static string CleanupSql(this string sql) { return Regex.Replace(sql, @"\s+", " ").Trim(); } }