Add examples of substrings before and after shortest or longest match