In lexer, stop reading input as soon as empty string is returned