ksh: removing all white spaces

'String' file contains the following contents,

D11, D31, D92, D29, D24,

using ksh, I want to remove all white spaces between characters no matter how long the string is.

Would you please give me some help?

tr -d ' ' < stringfile > newfile

is that what you mean?