Allow substr searches to be exact in canonical matches (fixes #24)