also trim the value of the priority field in SLD (follow-up to: #1048)