Re-editing Kash's ExactMatch method.