Removes unnecessary newlines from response.