deletes unnecessary spacing