Double-checking types used with string::find()