Changed signature for static handleWhiteSpaceFor(), and used internally to make the code a bit more compact