remove the trailing whitespace