Add examples for some StrSlice methods.

(By chance, the `contains` example was actually what I was trying to write when I discovered #16589)