Small performance improvement in _filterString
Code layout improved a little