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