Replaces all spaces in a character with a different string.