changed std::string to char* to fix output