trim

Removes leading and trailing whitespace from a string.

Arguments

  • string - The string to trim.

Example

{
  "$template": {
    "$comment": "The field below will be 'this is a test'",
    "test": "{{trim('  this is a test  ')}}"
  }
}