Changed contains() to indexOf()