Trim Spaces only removes characters from the start or end of the string, not from anywhere in the string. The same happens with the other actions in the "Trim" group ("Trim Empty Lines" and "Trim Spaces and Empty Lines").