Is the indexOf(String) method case sensitive? If so, is there a case insensitive version of it?
Converting both strings to lower-case is usually not a big deal but it would be slow if some of the strings is long. And if you do this in a loop then it would be really bad. For this reason, I would recommend indexOfIgnoreCase.
indexOfIgnoreCase