string->trim

Removes leading and trailing whitespace.

Target member

Signature

1string->trim()

Removes leading and trailing whitespace.

string->trim is called with member syntax on a receiver value. string->trim works with text values. Normalize input at boundaries, escape at output boundaries, and keep encoding calls close to the place where the encoded text is needed.

Examples

Basic call

1'  Ada  '->trim
The example shows the receiver and result shape. In templates, apply escaping at the final output boundary.