Fixed IndexOutOfBoundsException when a keyword is of length 1 (2/2).