How to delete a empty space from a string?

I have a string " 96 “, or " 96”, or "96 ".
The empty space can be in the front or after a number.
How to delete the empty space from the string?
I tried some delete commands, but it doesn’t work.

delete space from myString