renamed StringUtil isWhiteSpace to isHTMLWhiteSpace to avoid confusion as two kinds of whitespace are used in the project