Replace char* with std::string