Modified indexOf methods