Here is a simple script to do what you want
Names Default To Here( 1 );
dt = Current Data Table();
For( i = 1, i <= N Cols( dt ), i++,
Column( dt, i ) << set name(
Trim(
Substr( Column( dt, i ) << get name, Length( Word( 1, Column( dt, i ) << get name, " " ) ) + 1 )
)
)
);
Jim