Getting started Community Training Tutorials Documentation APIs, AI & Tools
%dw 2.0
output application/json
---
{ "trim": trim(" my really long text ") }
Removes any blank spaces from the beginning and end of a string.
This example trims a string. Notice that it does not remove any spaces from the middle of the string, only the beginning and end.