replace std::string with const char*