Check gadget string length boundary