public static string RemoveAllWhitespaces (this string str) { return Regex.Replace(str, @"\s+", ""); }