Store terminal if match length = 1.