Removing unnecessary blank spaces in text records - 8.0

Talend Data Preparation User Guide

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
Talend Data Preparation
Data Quality and Preparation > Cleansing data
Last publication date

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.


  1. Select a column containing text with blank spaces or a column that you think may contain some.
  2. In the functions panel, type Remove trailing and leading characters and click the result to open the options the associated function.
  3. In the Padding character drop-down list, select whitespace.

    Select other to specify any other trailing or leading character to be removed.

  4. 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 column.
Tip: This transformation can also be performed by using the Magic fill function.