Removing blank spaces in customers names - Cloud

Talend Cloud Data Preparation Examples

Version
Cloud
Language
English
Product
Talend Cloud
Module
Talend Data Preparation
Content
Data Quality and Preparation > Cleansing data
Last publication date
2024-04-04

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.

Data containing 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.