generate unique string only when the field is blank