Fixing errors in string parser.