title: Unable to concatenate strings in Python2.7
body: <p>I'm trying to concatenate two strings in my function. I tried all concatenation, but those two strings just don't concatenate one after another, instead, shorter strings B(length = s) substitute the first s units of longer string A. </p>
  
  <p>I read some data from input file, and store third line whose content is "00001M035NNYY1111111" into a variable called applicant:</p>
  
  <pre><code>data = open("input.txt").read().split('\n')
  
  applicant = str(data[2])
  </code></pre>
  
  <p>I want to add an integer 8 at the end of <code>applicant</code>, so the new <code>applicant</code> will be "00001M035NNYY11111118". I tried <code>applicant += str(8)</code> and <code>"".join((applicant, str(8)))</code> and other concatenation methods, but all of them only give me "80001M035NNYY1111111"... Does anyone know why this happened and how am I suppose to do to get my intended result.</p>