registers array - yytext not behaving as expected