Switch a bunch of manual if-chains to use StringSwitch. Clean them up in