title: Replace String From Tuple Inside List
body: <p>I currently have the following list:</p>
  
  <pre><code>data = [('b','..','o','b'),('t','s','..','t')]
  </code></pre>
  
  <p>I am trying to figure out a way to replace all instances of the '..' string to another string. In my instance, the string of ' '.</p>
  
  <p>I have attempted to use the built-in function using the following method, but had no luck.</p>
  
  <pre><code>newData = list(map(lambda i: str.replace(i, ".."," "), data))
  </code></pre>
  
  <p>Could someone point me in the right direction? My desired output would be the following:</p>
  
  <pre><code>newData = [('b',' ','o','b'),('t','s',' ','t')]
  </code></pre>