Could probably add a `regionSetting = regionSetting.toLowerCase()` here so you don't have to invoke it for every branch.