Added indexOf() to the core.