Changed string switch to if-else if format

Switches on strings aren't backwards compatible with older versions of Java.  Not recommended to use them, even though they are prettier than if-else if blocks.