fixed bug in string parser.