Method indexOf() was removed.
Edited comments.