Glad it is working and you like the corrections, I used Hash Tables to store your data instead of Variables and instead of increasing the Variable "%utall" $hget(replace,0).item returns the number of Replaced words.

P.S. You're welcome. smile

-Andy