Fix array index out of bounds issue in Planner
add toUpperCase, thanks Chris
performance tweak, per review
Merge pull request #1904 from VoltDB/ENG-7395

Fix array index out of bounds issue in Planner
Merge remote-tracking branch 'upstream/master'