Implement TextFilter.