Edited NamedEntityFinder to check all strings in the query offsets