Delete trailing whitespaces before saving