Twist Gap and Global Symmetry in Two Dimensions