Tweaks to lexer utils.
Improve performance of string building.
Still need to turn this into a foldr.