Hi,

How can I replace the redundant spaces from a string like "T h i s is a s a mple string"?

(I meant to have various numbers of spaces in between some characters but they all come through as single spaces...)

Thanks!