Add initial parse_string function.

I'm wondering if there's a shorter name that would still be clear (or
clearer).