That's great jaytea, many thanks. I don't like much replacing standard spaces with non-breaking spaces either if there's another way.

I used your "append $chr(32) on every loop" method because the reverse looping method made me greatly confused (especially as the script i'm doing adds extra characters/codes into the %toSend variable as it goes on).

Incidentally, just so I understand, how does "set -n" differ from "set" in the context of how my script works?