Change of switch string to switch char for Java 1.6