Trim empty newlines