remove the trailing space