Update string.hpp to use some C++11 features.

The decision was made to leave string_to() and string_from() since the
C++11 to_string() and sto* functions are less general than these.