prevent re-application of negative brackets

if the set function is called during a focusout event, the negative brackets are added twice.