Lexer get unclosed string raising exception