Add second argument of indexOf function.