Use indexOf function from Core.