Bugs fixed

Wasn't reading the last word of text. Fixed that and then fixed
arrayOutOfBounds.