alter string::npos to wstring::npos