Given:
1. I have service task with the expression defined
2. Value of expression attribute contains leading or trailing space(s).
Then:
Leading and trailing spaces are removed before evaluating the expression.
So that:
If we have service task like:
<bpmn:serviceTask id="Task_054xd3h" name="Set a thing" camunda:expression=" ${now()} " camunda:resultVariable="rightNow">
, result variable will be of type Date (instead of String).