Trim Whitespace is not working right

Dear Colleagues,
I used the next experiment with activity Trim Whitespace.
image
The variables were the next:
image
O hoped to get one line variable, but the activity did not delete line break symbol.
The result is:
image
What’s wrong?