Added exact/inexact dictionary search