Delete unnecessary spaces