public static string RemoveDoubleSpaces(this string value) { string result = Regex.Replace(value, @"\s+", " "); return result; }