How to remove all spaces of a string