fixed from unsigned int to size_t when checking string::npos.