bmel:trim¶
Category: String · Returns: bmel:string
Signature
bmel:trim(expr: bmel:string)
Description¶
Removes leading and trailing whitespace from a string.
Arguments¶
| Parameter | Type | Required | Description |
|---|---|---|---|
expr | bmel:string | The string to trim. |
Examples¶
Remove surrounding spaces
bmel:trim({createOrder:Request Payload}.$.customer.email)
Trim and lowercase an email
bmel:lower(bmel:trim({createOrder:Request Payload}.$.customer.email))