title: Output of an array is different whether used in a variable or printed
body: <p>So I am trying to assign a string from an array to a variable and use it in a function. The string should be <code>"n02504458"</code>. Let me explain. Here is the original array:</p>
  
  <pre><code>('Predicted:', [
      (u'n02504458', u'African_elephant', 0.99588591), 
      (u'n01871265', u'tusker', 0.004068926),
      (u'n02504013', u'Indian_elephant', 4.499541e-05)
  ])
  </code></pre>
  
  <p>coming from the following line:</p>
  
  <pre><code> decode_predictions(preds, top=3)[0]
  </code></pre>
  
  <p>If I execute the following:</p>
  
  <pre><code>result = decode_predictions(preds, top=3)[0]
  
  code = result[0][0]
  </code></pre>
  
  <p>To just get <code>n02504458</code> and and print it out using <code>print(s)</code>, I get what I expect.
  However when I try to pass it to a function as follow:</p>
  
  <pre><code>q = '"'
  s = q + code + q
  ids = synset_to_dfs_ids(s)
  </code></pre>
  
  <p>I will get an error. If I do the following however, I would not have any issues. </p>
  
  <pre><code>s = "n02504458"
  ids = synset_to_dfs_ids(s)
  </code></pre>
  
  <p>I am very new to python and I do not really understand what is happening. Thanks for any help.</p>