Completed indexOf