title: For loop adding new line
body: <p>EDIT: Sorry about not being clear where the extra new line happens</p>
  
  <p>I have a for loop that reads from different arrays in order to make a long string to display. The format of the string should be like this</p>
  
  <pre><code>Question X
  Your answer was: Y
  Correct answer was: Z
  
  Question XX
  Your answer was: YY
  Correct answer was: ZZ
  
  ....
  </code></pre>
  
  <p>However when the string is produced it starts off fine but it gets to have an extra space as shown in the pattern below</p>
  
  <pre><code>....
  
  Question X
  Your answer was: Y
  Correct answer was: Z
  
  Question XX
  Your answer was: YY
  Correct answer was: ZZ
  
  Question XXX
  Your answer was: YYY
  
  Correct answer was: ZZZ
  
  Question XXXX
  Your answer was: YYYY
  Correct answer was: ZZZ
  
  Question XXXXX
  Your answer was: YYYYY
  
  Correct answer was: ZZZZZ
  </code></pre>
  
  <p>...</p>
  
  <p>This is the code I have to produce this:</p>
  
  <pre><code> for(int x=1;x&lt;11;x++){
        if(x==10) 
        {
         longResultsString+="Question " + x + " " + isCorrect[9] + "\nYour  answer was: " + detailedResultsUserChoices[9] +" \nCorrect answer was: " + answerChoices[9][4];
  
        }
        else{
        longResultsString+="Question " + x + " "+isCorrect[x-1] + "\nYour answer was: " + detailedResultsUserChoices[x-1] +" \nCorrect answer was: " + answerChoices[x-1][4] + "\n\n";
  
        }
   }
  </code></pre>
  
  <p>and I am wondering if anyone has any suggestions for what would cause this behavior</p>