`if ( typeof str !== "string" || str.search( usernameRegex ) === -1 )`