indexOf to the rescue