add to_s before downcase
Merge branch 'hotfix_downcase_nil'