replaced str.push_back(string) with str.push_back(std::move(string))