Make walker.guard smaller.
Removed unneeded condition from walker.guard.
Compile regexp.
Added comment to onlyWhiteSpaces.