Adding indexOf helper