Added documentation for indexOf