Implement eatWhitespace.