Consolidate calls to toLower to address a linux compile issue