Class who wrap string that match regex