replaced std::string by char*