squeezing out every matching character