Updated indexOf

Now it takes a variety of arguments.