switch(String) not supported until Java 1.7