use indexOf native version