xxxxxxxxxx
If =TRIM() isn't working there may be a symbol there other than a normal space.
Highlight the empty space next to your text and copy it.
Then highlight the cells you want to fix.
CTRL + H (Find and Replace)
Paste the empty space you copied into the "Find" and leave the "Replace" blank
Then click "Replace All" (This will remove whatever was there)