Get rid of extra spaces throughout document