remove trailing whitespace and newlines