Get rid of unnecessary spaces