Modify space character check.