Delete trailing spaces automatically