Thank you! It's working now. But you know when I type in Gatchina (the centre of Leningrad Oblast), Federal City of Saint Petersburg appears on the list, while it should be hidden until the moment someone types in Saint Petersburg itself (rows ## 19 and 20 in the right column). It looks weird.
Upd. It seems that it works the other way around, too.
Upd. It seems that it works the other way around, too.