Use trim
to get rid of the whitespaces at the start and the end of a string. You can also use it to cut a defined parameter.
{{ ' I like Emarsys Scripting Language. '|trim }}
Result
I like Emarsys Scripting Language.
Any other character can be defined to be cut if you include it as a parameter.
{{ ' I like Emarsys Scripting Language.'|trim('.') }}
Result
I like Emarsys Scripting Language