Articles in this section

trimRight helper

Removes only trailing whitespace from a string, leaving leading whitespace unchanged. Use it when values may include extra spaces at the end that need to be cleaned up.

Usage

{{trimRight value}}
  • value (required): input string

Examples

  1. Remove spaces from the end of a string

    {{trimRight record.text}}
    

    Input:

    { "record": { "text": " ABC " } }
    

    Output:

    " ABC"
    

Tip

  • Only trailing whitespace is removed; leading whitespace remains intact.

  • Use this helper when exporting values where leading spaces are meaningful but trailing spaces should be discarded.

  • Pair withtrimLeftif you need to remove both leading and trailing whitespace.