In many cases, the strings being scanned will be known tokens that are repeated many times within a file/input stream. To avoid excessive memory issues, JFlex should have an option to intern strings before returning them out of yytext.