Add indexOf() alternative.