Skip to main content

Trim Text Values in Scenario Editor

Trim Text Values in Scenario Editor

ForTrim example:text Needvalues when leading or trailing whitespace would make a validation or data mapping unreliable.

  • Trim only "whitespace 14393430"that fromis not meaningful to the stringbusiness "Cartvalue.
  • Normalize savedvalues asconsistently Quotebefore : 14393430" usecomparison.
  • Keep the beloworiginal function:value visible in output when troubleshooting.
  • Avoid trimming IDs, codes, or fixed-width values unless approved.

Validation workflow

  1. Capture the source text.
  2. Apply trim or normalization logic.
  3. Compare the cleaned value with expected data.
  4. Store the cleaned value if downstream steps need it.

var quote = "Cart saved as Quote : 14393430"

var quotenum=quote.substring(quote.indexOf(':') + 1)


Last updated: JuneSeptember 26,20, 20232026

If you have any feedback on this topic, please contact us at documentation@appvance.ai