title: Looping through list elements to replace strings in each element
body: <p>I have a list with universities:</p>
  
  <pre><code>['1 1  LOMONOSOV MOSCOW STATE UNIVERSITY  XL FO VH  5  A  100 100 100  87.1            52.4 52  99.3 87  100 100', '', '', '', ''],
  ['2 2 NOVOSIBIRSK STATE UNIVERSITY                                                 M CO VH 98.1 96.5 88.9 98.8 59.7 38.1 69.8 92.1 99.4 96.7', '', '', '', ''],
  ...
  </code></pre>
  
  <p>I would like to remove superfluous information (nrs, spaces, ...) and just keep the university name.</p>
  
  <p>For this I am trying to loop through my list, replacing numbers and other unwanted chars with "".</p>
  
  <p>So far I have:</p>
  
  <pre><code>for i in range(len(flat_data2)):
  
      mainString = flat_data2[i]
  
      def replaceMultiple(mainString, unwanted, input_char):
      # Iterate over the strings to be replaced
          for elem in unwanted :
          # Check if string is in the main string
              if elem in mainString :
              # Replace the string
                  mainString = mainString.replace(elem, input_char)
  
          return  mainString
  replaceMultiple(mainString, unwanted, input_char)
  </code></pre>
  
  <p>Unfortunately, I only returned the final element of my list (though the unwanted chars are removed...).</p>
  
  <p>What am I missing? Or do you have better solution?
  Many thanks!</p>