DDF-631 - added check to ensure we have a String before doing toLowerCase()