Use StringSwitch instead of long chain of if-else. No functionality change.