Fixed IndexOutOfBoundsException when a keyword is of length 1.