Fixed a Java 7 only "switch(String)"