resolves multiple IndexOutOfBounds exceptions when handling odd quotations.

Signed-off-by: Nick Minkler <sleaker@gmail.com>
Merge pull request #516 from Sleaker/master

Solves multiple IndexOutOfBounds issues