you can use $reptok() for that if the word is surrounded by spaces which is what you showed in your example.