Fix 'indexOf' calls.