1.3.10.44 Trim Whitespace
The Trim Whitespace processor trims whitespace characters (that is, spaces and other non-printing characters) from text attribute values. You can control whether to trim whitespace from just the left-hand side of a value (leading whitespace), just the right-hand side (trailing whitespace), from both sides, or across the whole of the original value.
The result of the trim is output as an additional attribute.
Use Trim Whitespace to normalize a text value down to its 'real' value. For example, you may want to remove any spurious extra spaces from any attributes that you want to use in a Duplicate Check.
Note that Trim Whitespace uses a fixed definition of whitespace that will remove all whitespace and non-printing characters from attribute values.
The following table describes the configuration options:
Configuration | Description |
---|---|
Inputs |
Specify any String or String Array type attributes from which you want to trim whitespace. Number and Date attributes are not valid inputs. Note that if you input an Array attribute, the transformation will apply to all array elements, and an Array attribute will be output. |
Options |
Specify the following options:
|
Outputs |
Describes any data attribute or flag attribute outputs. |
Data Attributes |
The following data attributes are output:
|
Flags |
None. |
The Trim Whitespace transformer presents no summary statistics on its processing.
In the Data view, each input attribute is shown with its new derived attribute with numbers stripped to the right.
Output Filters
None.
Example
In this example, Trim Whitespace is used to trim leading whitespace from the left of an ADDRESS3 attribute:
ADDRESS3 (asc) | ADDRESS3.Trimmed |
---|---|
Avon |
Avon |
Avon |
Avon |
Bedford |
Bedford |
Bedfordshire |
Bedfordshire |
Berks |
Berks |
Berks |
Berks |
Berks |
Berks |