fixed string parsing bug