handle whitespace as empty, fix #161275