Improve lexer performance by deciding using first character.

Closes #13.