modified string token handler in lexer to properly deal with EOF