Improve rmTrailingNewline