Remove unnecessary spaces.