Use std::string instead of char pointers/arrays.