C_str issues fixed, replacing with std::string