Trim does not remove any whitespace

OS info

  • Operating System : Windows 10.0.18363
  • Wappler Version : 3.4.2

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

What’s your server model?

Forgot to say that the truncate function can’t be selected at all. May be worth looking at that too. Unless you need that in a separate bug report.

PHP. is that what you’re asking?

I tested it and the trim formatter works fine for spaces. Problem seems to be the Wappler input, when setting the string directly in the value input, it seems not to insert a normal space but a non-breaking space instead which isn’t trimmed.

Perhaps @George can look at it.