change the method for judging whether there are spaces in the message