Use this online free Remove Extra Spaces Tool which removes all the extra spaces from text or code. This tool does not remove all the spaces, it just removes the ones which human eyes cannot catch. There is no way to spot trailing spaces, those that keep out of sight at the end of cells.
Type or paste any text into the textarea above and click the Submit button and see the result below.
In fact, spaces are characters like the others, but they are invisible. To delete them in a text means to search for all characters with the code space and to perform their removal.