indexofSlice -> indexOfSlice

Correct capitalization