filtering with indexOf