Filter only when characters >= 2 (fixed #2039)
Merge pull request #2041 from dinhviethoa/2039-filter-perf

Filter only when characters >= 2