You usually should use strings in the whole program and convert them into C-strings or character
arrays only immediately before you need the contents as type char*. Note that the return value of
c_str() and data() is valid only until the next call of a nonconstant member function for the same
string: