Extract commonly method
Improve xt to test multi-byte char