Support whitespace characters when parsing simple tokens (see #5323)