title: Python concatenate a string and a variable
body: <p>I am trying to concatenate strings and variables , i see new lines get added ..</p>
  
  <pre><code>def convert_hostname(row_rack,ru_host,orig_hostname):
    if orig_hostname[0:9] == "ll21l01ms":
       print row_rack,
       print ru_host,
       temp_var = "ll21l01ls-" + row_rack + ru_host + ".com"
       print temp_var
  
  Output when run :
  0707
  49
  ll21l01ls-0707
  49
  .com
  </code></pre>
  
  <p>When i try to print the temp_var , it adds new lines during the concatenation. </p>
  
  <p>The with output should be like this :</p>
  
  <pre><code>0707
  49
  ll21l01ls-070749.com
  </code></pre>
  
  <p>Any ideas?</p>