Remove the trailing whitespaces