Trim trailing space characters when saving a project