speedup string filter