handle whitespace as empty, fix #161275
Merge pull request #161317 from mauk81/patch-7

handle whitespace as empty, fix #161275