[Ref #4884] Fix the issue of space characters.