A quick template that strips whitespace from the beginning and the end of input string.
{{trim| Lorem ipsum }}
Result: Lorem ipsum