Trim text does not remove whitespaces from everywhere in the text. It is only used to remove whitespaces from the start and/or the end of the end of the text.
If you want to remove whitespaces from inside of your text, use Replace text instead. Use %" "% as the text to be replaced and %""% as the text to replace with. This will replace all whitespaces with nothing.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.