change tsRe to better exclude null chars