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 SAP Engagement Cloud Scripting Language. '|trim }}Result
I like SAP Engagement Cloud Scripting Language.Any other character can be defined to be cut if you include it as a parameter.
{{ ' I like SAP Engagement Cloud Scripting Language.'|trim('.') }}Result
I like SAP Engagement Cloud Scripting Language