cleanup trailing whitespace