Removing unnecessary blank spaces in text records - 7.0

Talend Data Preparation Quick Examples

Talend Documentation Team
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Data Quality and Preparation > Cleansing data
Talend Data Preparation

Blank spaces can be present before and after the content from each cell.

They are more likely to be present in columns containing data manually entered by someone, such as a name or a phone number. These spaces are shown as grey squares.

You can see that the first_name and last_namecolumns contain some entries with blank spaces.


  1. Select the first_name column.
  2. While keeping the Ctrl button pressed, click the header of the last_name column.

    The two columns are now selected, and you can apply a function to both columns in one action.

  3. In the functions panel, type Remove trailing and leading characters and click the result to open the options for the associated function.
  4. In the Padding character drop-down list, select Whitespace and click Submit.

    You have the possibility to output the result of this function in a new column by selecting the Create new column check box.


Blank spaces are removed from the selected columns.