A restriction to the maximum word length is applied to limit the number of iterations in this loop, without which the algorithm would have quadratic time complexity.
our decoder does not search backword for the possible starting character of any word.