Dual key dict + string matching