some updates for STR type and DO-WHILE statement