moved indexOfIgnoringCase function to the exported functions