Swapped String.search for indexOf