Trim does not remove any whitespace

OS info

Problem description

The server action Formatter > Text > Trim function does not work. It does not remove any whitespace, neither from the beginning nor from the end of a string.
Am I using it incorrectly?

Below are simple steps to reproduce:

This is the result of running the server action:
image

Community Page
Last updated: