Trim
Strip whitespace, prefixes, and suffixes.
Trim
trimStrips any of the cutset characters from both ends of a string.{{ input | trim:'/' }}trim_prefixRemoves the given prefix once from the start of a string,
returning it unchanged when it does not start with that prefix.{{ path | trim_prefix:'/api' }}trim_suffixRemoves the given suffix once from the end of a string,
returning it unchanged when it does not end with that suffix.{{ file | trim_suffix:'.txt' }}