* Change name of textFilteredEntries to getTextFilteredEntries.
Definitely a better name.
* Changed condition in getTextFilteredEntries so that it is not exact
copy of java implementation.