support any length word spotting in spots_by_trigram