Fix wrap_text method in Matcher