Bug fix for indexOf that led to indexOutOfBound exception for indexOf method
IndexOf Bug Fix Commit