changed char ptr to std::string, fixed syntax.