%dw 2.0
output application/json
---
{ "trim": trim("   my really long  text     ") }
trim
trim(text: String): String
Removes any blank spaces from the beginning and end of a string.
Example
This example trims a string. Notice that it does not remove any spaces from the middle of the string, only the beginning and end.



