strip newlines and cr from response