modified std::string to c_str()