returns a list of all indices which match a pattern.
mode can be -exact, -glob, or -regexp
The default mode is -exact
eg.:
% string_find -regexp {Ape Ball Field {Antwerp city} Egg} {^A}
0 16
string_replace string first last replacement
replace a part of a string