将以下文本中的标点符号和换行符移除。
"This is a sentence. It contains some punctuation, such as commas, periods, and exclamation marks! 
Also, it has a newline character."
This is a sentence It contains some punctuation such as commas periods and exclamation marks Also it has a newline character.