Use string::npos instead of -1