Unless you are using a comletely new compiler that no one else is using, I'm 99.99% sure that the problem is in your code, and not in the compiler. Switch statements are used quite often in code, so a compiler that isn't able to correctly compile switch statements would not get very far.
Perhaps "wordToShort" isn't returning what you exect, or some such? Add a temporary variable, assign it with wordToShort, and switch on the variable - then modify the code to print the variable before the switch.
--
Mats