Implemented parseString