Implemented string parser.
Added proper error propagation logic.