reverting switch on string to an if/else for jdk 1.6 compatibility.
Merge pull request #118 from ehrlichja/develop

reverting switch on string to an if/else for jdk 1.6 compatibility.