don't use switch/case with strings (not compatible with java 1.6)