Try:
replace({table.field}," ","")
And if you've numerous, nest them, as in:
replace(replace({table.field}," ","")," ","")
Or you can loop:
whileprintingrecords;
stringvar Output:="";
numbervar counter;
for counter = 1 to len({table.field}) do(
if mid({table.field},counter,1) <> " " then
Output:=Output+mid({table.field},counter,1)
);
Output
-k