private Predicate<object> GetMatchStrategy(IFilterCommand filterCommand) { return o => { var text = _textBox.Text.Replace(filterCommand.CommandText, "").Trim(); return text.Length > 0 && filterCommand.IsMatch(o, text); }; }