change char[] to std::string