extract ottID from a label