. . . "In order to correctly handle terminating conditions such as determining a previous location for the first location of a word, or a next location for the last location of a word, two additional indicators can be used in specifying constraints." .