Hi,
As per my understanding you are loading data through flat file.In that case you can use SED commands.
But if the space position in data value is fixed then you can use following command.
trim(SUBSTRING(col1,1, INDEX (trim ( BOTH ' ' from col1),' ') ))|| trim(SUBSTRING(col1, INDEX (trim (...