remove newlines from test strings