private static string RemoveDuplicateWhitespace(string html) { return Regex.Replace(html, "\\s+", " ").Trim(); }