Add a doctest for the std::string::as_string method.

Taking a `&String` is almost never what we want, can we make this a `String` and