Hello, just in case you are asking about performing a Collapse Whitespace function on every character column to remove excess whitespaces there is a script below. I am sure there are many ways to do this but I just stole some code from the advanced log after manually recoding a column. Wasn't sure exactly what you were asking for so thought I would provide this just in case.
Names Default to Here(1);
dt = Current Data Table();
Cols = dt << Get Column Names( Character, String);
For(
i = 1, i <= N Items( Cols ), i++,
Eval(
Eval Expr(
dt << Begin Data Update;
dt << Recode Column(
Expr( Column( dt, Cols[i] ) ),
{Collapse Whitespace( _rcNow )},
Update Properties( 1 ),
Target Column( Column( dt, Expr( Cols[i] ) ) )
)
)
);
dt << End Data Update;
)