Avoid switch/case on String objects (as it requires Java7)