Replace all spaces in the string