Removed string switch statement (only supported in java 1.7+)