Replaced switch-case statement with source-level 6 compatible alternative - switch statements with strings aren't supported