This fixes lint errors related to strings.Index.