/// <summary>Remove all whitespace characters from the string.</summary>
        public static string RemoveWhitespace(this string str)
        {
            Contract.Requires(str != null);

            var strMinusWhitespaceCharacters = WhitespaceRegex.Replace(str, String.Empty);

            return(strMinusWhitespaceCharacters);
        }
 public static string RemoveWhiteSpaces(this string @this)
 {
     return(@this == null ? null : WhitespaceRegex.Replace(@this.Trim(), " "));
 }