Or you could just use $findtok.
$findtok(this is my test,is,1,32)
If I understand what he is saying, that should do what he wants.