Fix Issue 12864 - can no longer use toLower in string switch case