Paperless Post interview question

Convert a string to an object.