Figure 1 Text searching with a distance table