Remove all spaces from text

From http://stackoverflow.com/questions/6623231/remove-all-white-spaces-from-text