Added CollapseWhitespaces method on StringHelper