Dear all,
I know there were already some discussions regarding "TRIM" function, but there is something strange happening in my flow for string variables and maybe someone else has already encountered this and could help.
You can find below my flow:

And also the final result:

So the TRIM function for the "EmailContent" variable defined by me is not working, spaces are not removed = trim(variables('EmailContent'))
Instead, for the HTML to Text is working = trim(body('Html_to_text'))
Anyone knows why is this happening? and how can I make it work also for variables?
Thanks!