Implemented ReadString function