Improved version of 'TreeWidget::filterString()'