Set field value does not set trimmed token
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3383905. -->
Reported by: [grimreaper](https://www.drupal.org/user/2388214)
Related to !404
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>I wanted to create a process that will trim spaces in a user profile fields.</p>
<p>First, I figured out that the "trim" option of the "Entity: set field value" had no effect.</p>
<p>So I prepared an intermediate action using tamper trim. The resulting token is ok when displaying with a message.</p>
<p>But when using the resulting token as new field value, I figured out that the replaced token was not trimmed.</p>
<p>BUT, when putting a character after it, for example: "[trimmed_title].", then the token was effectively trimmed...</p>
<p>Note: I tried to inspire myself from: <a href="https://ecaguide.org/library/test%20models/set_field_values/">https://ecaguide.org/library/test%20models/set_field_values/</a> to see that it was possible to change field values without having to set "Save the entity" to true.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>I attached 2 process acting on node title so no dependencies.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>I have not figured out from where this is coming from and I bet maintainers of ECA will found way quicker than me.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Find a solution<br>
Implement it</p>
issue