changed back to std::string::npos