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.