CE-324 removing space at the end of the message