how to check the index on a string code example Example: python string index od str.index(sub[, start[, end]] )