title: Strip list items with multiple arguments error
body: <p>I'm trying to remove a lot of stuff from a text file to rewrite it.
  The text file has several hundred items each consisting of 6 lines of.
  I got my code working to a point where puts all lines in an array, identifies the only 2 important in every item and deletes the whitespaces, but any further stripping gives me the following error:</p>
  
  <blockquote>
    <p>'list' object has no attribute 'strip'</p>
  </blockquote>
  
  <p>Here my code:</p>
  
  <pre><code>x = 0
  y = 0
  names = []
  colors = []
  array = []
  
  with open("AA_Ivory.txt", "r") as ins:
  
      for line in ins:
          array.append(line)
  
  def Function (currentElement, lineInSkinElement):
      name = ""
      color = ""
      string = array[currentElement]
      if lineInSkinElement == 1:
          string = [string.strip()]
  #       string = [string.strip()]
  #       name = [str.strip("\n")]
  #       name = [str.strip(";")]
  #       name = [str.strip(" ")]
  #       name = [str.strip("=")]
          names.append(name)
          return name
  #   if lineInSkinElement == 2:
  #       color = [str.strip("\t")]
  #       color = [str.strip("\n")]
  #       color = [str.strip(";")]
  #       color = [str.strip(" ")]
  #       color = [str.strip("=")]
  #       colors.append(color)
  #       return color
      print "I got called %s times" % currentElement
      print lineInSkinElement
      print currentElement
  
  for val in array:
      Function(x, y)
      x = x +1
      y = x % 6
  
  #print names
  #print colors
  </code></pre>
  
  <p>In the <code>if</code> statement for the names, deleting the first <code>#</code> will give me the error.
  I tried converting the list item to string, but then I get extra <code>[]</code> around the string.</p>
  
  <p>The <code>if</code> statement for <code>color</code> can be ignored, I know it's faulty and trying to fix this is what got me to my current issue.</p>