indices(s)
index(s)
rindex(s)
Now these deal with arrays as input and `s` being an array or a scalar.