trim
Syntax
- trim
Description
The trim operation removes whitespace characters from the start and end of any string being passed through.
Trimming a string can be helpful when a data source sends a fixed-length string, where the value is padded out with additional spaces to meet the fixed length.
Examples
- AdapterScript
var1:
- source: program-name
- trim
info
In the above example, program-name
is an identifier from another part of the adapter script