Do you want == string::npos here?