Removing unnecessary blank spaces in text records

Talend Data Preparation Quick Examples

author
Talend Documentation Team
EnrichVersion
6.5
2.3
EnrichProdName
Talend Data Services Platform
Talend Big Data
Talend Real-Time Big Data Platform
Talend Data Integration
Talend Data Fabric
Talend MDM Platform
Talend Big Data Platform
Talend ESB
Talend Data Management Platform
task
Data Quality and Preparation > Cleansing data
EnrichPlatform
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 column contains some entries with blank spaces.

Procedure

  1. Select the First_Name column.
  2. In the functions panel, type Remove trailing and leading characters and click the result to open the options for the associated function.
  3. 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.

  4. Repeat this action for every column containing blank spaces.

Results

Blank spaces are removed from the selected column.