Changes

reference to Ticket #10131

This may be a too naive solution to the problem I described in Ticket #10131, as I do not yet fully understand the concept behind the formatters.

This is my reasoning:

The trim_all_*_if() functions use the dissect_formatter with the first element as the argument. Since we are actually just trimming *all* I doubt that it is necessary to keep the "head". Since I found the trim_fill_*_if() functions with an empty replacement string to work correctly, we could use the same approach here. I've replaced the dissect_formatter with the const_formatter taking an empty string argument. 

I have found this working with my code and examples. But as I said above, since I do not yet grasp the full concept of the formatters, there could be side effects I was not able to detect.