Added lexer for string input