fixed error in parsing string values