IndexOf method completed