Minor optimization in lexer