You can delete spaces in between strings by using Search and Replace String function. The search string changes depends on which you want to delete, half-width space or full-width space.
See the following example.
In input string, there is half-width space between "?" and "!", full-width space between "Hello" and "World" and also between "World" and "?".