Fix Issue 12864 - can no longer use toLower in string switch case
Merge pull request #3644 from yebblies/issue12864

[REG] Issue 12864 - can no longer use toLower in string switch case