Fixed arguments passed into string->index() #218