fixes #2011
Merge pull request #2068 from dotCMS/issue-2011-error-creating-new-folder-leave-a-blank-space-at-the-end

fixes #2011