Parser with string, % and do-while