DDF-579  changed to use StringUtils check for clarity