Added functionality for finding a word between two others.