title: How to remove escape codes from strings after scraping a website
body: <p>I try to learn data science with python in simplilearn. in matplotlib learning section they do web scraping from <a href="https://www.hubertiming.com/results/2018MLK" rel="nofollow noreferrer">here</a>.</p>
  <pre class="lang-py prettyprint-override"><code>import pandas as pd
  import numpy as np
  import matplotlib.pyplot as plt
  
  %matplotlib inline
  
  from urllib.request import urlopen
  from bs4 import BeautifulSoup
  import re
  
  url=&quot;https://www.hubertiming.com/results/2018MLK&quot; #OPEN LINK
  html=urlopen(URL)
  soup=BeautifulSoup(html,&quot;lxml&quot;)
  title = soup.title
  print (title)
  print(title.text)
  links = soup.find_all('a',href=True)
  for link in links:
      print (link['href'])
  data =[]
  allrows=soup.find_all(&quot;tr&quot;)
  for row in allrows:
      row_list = row.find_all(&quot;td&quot;)
      dataRow=[]
      data_converted = []
      for cell in row_list:
          dataRow.append(cell.text)
      data.append(dataRow)
  data=data[4:]
  print(data[-2:])
  </code></pre>
  <p>And this is the results</p>
  <pre><code>[['190', '2087', '\r\n\r\n                    LEESHA POSEY\r\n\r\n                ', 'F', '43', 'PORTLAND', 'OR', '1:33:53', '30:17', '\r\n\r\n                    112 of 113\r\n\r\n                ', 'F 40-54', '\r\n\r\n                    36 of 37\r\n\r\n                ', '0:00', '1:33:53'], ['191', '1216', '\r\n\r\n                    ZULMA OCHOA\r\n\r\n                ', 'F', '40', 'GRESHAM', 'OR', '1:43:27', '33:22', '\r\n\r\n                    113 of 113\r\n\r\n                ', 'F 40-54', '\r\n\r\n                    37 of 37\r\n\r\n                ', '0:00', '1:43:27']]
  </code></pre>
  <p>how can I get rid the <code>\r\n\r\n</code>?? i already use <code>&quot;replace&quot;</code> function and it say <code>&quot;'list' object has no attribute 'replace'&quot;</code> and also I can not use strip neither.</p>