cleanup trailing whitespace and indentation