Add check to $regex variable existence
Changed the way chain type was verified in order to infer CDR3