Remove unnecessary spaces