[Ref #4884] Fix the issue of more than one space character.