How about declare as std::string* instead of char**?