title: Appending a string with string in ios
body: <p>I am in a problem with some text sharing to evernote,sharing evernote is success,but here is my current situation with code. I have a <code>UITableView</code> which has some text and title for that corresponding text. When the share button is clicked it will share the text onebyone to evernote website, but the title remains static. There I get the first title name along with diffrent text. My code for this is in my tableview in <code>rowAtIndexPath</code></p>
  
  <pre><code>NSMutableString *strr=[[NSMutableString alloc]initWithString:[appDelegate.indexArray objectAtIndex:indexPath.section]];
  cell.textLabel.text =strr ;
  cell.textLabel.text = [appDelegate.indexArray objectAtIndex:row];
  cell.textLabel.font = [UIFont fontWithName:@"Georgia" size:14.0]; 
  cell.textLabel.textColor = [UIColor brownColor];
  
  
  [appDelegate.notesArray objectAtIndex:row]];
  //cell.detailTextLabel.text =notes;
  cell.detailTextLabel.font = [UIFont fontWithName:@"Georgia" size:14.0]; 
  cell.detailTextLabel.textColor = [UIColor darkGrayColor];
  cell.detailTextLabel.text = [appDelegate.notesArray objectAtIndex:row];
  </code></pre>
  
  <p><code>appDelegate.indexArray</code> is the title content for each cell and <code>appDelegate.notesArray</code>  has the textnote for the corresponding titles. </p>
  
  <p>In shareButton click:</p>
  
  <pre><code> NSMutableString *str = [[NSMutableString alloc] initWithString:@"NOTES:"]; 
   for (int i = 0; i&lt;[appDelegate.notesArray count]; i++) { 
          NSString * aString = [[NSString alloc] initWithString:[appDelegate.notesArray objectAtIndex:i]] ;
          NSString * ENML= [NSString stringWithFormat:@"&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;!DOCTYPE en-note SYSTEM \"http://xml.evernote.com/pub/enml2.dtd\"&gt;\n&lt;en-note&gt;%@",aString];
  
      ENML = [NSString stringWithFormat:@"%@%@", ENML, @"&lt;/en-note&gt;"];
      NSLog(@"%@", ENML);
  
      // Adding the content &amp; resources to the note
      [note setContent:ENML];
  </code></pre>
  
  <p>This will give the one by one upload of notetext.but for title I include this code</p>
  
  <pre><code>NSMutableString *strtitle = [[NSMutableString alloc] initWithString:@"myBibleApp"]; 
      for (int i = 0; i&lt;[appDelegate.indexArray count];i++ ) { 
          NSString * aStringtitle = [[NSString alloc] initWithString:[appDelegate.indexArray objectAtIndex:i]] ;
         /* NSString *ENMLtitle = [NSString stringWithFormat:@"%@%@", aStringtitle];
          NSLog(@"%@", ENMLtitle);*/
  
      note.title = aStringtitle;
  </code></pre>
  
  <p>But here is my problem it uplode the title and text in double. That means, I have one text with title. When I click the sharebutton it uploads two times.1=2,2=4,3=6 like that.
  Nut only addding the title I get this problem. If I put the title static,note.title =@"statictitle". It will not repeat the upload. How can I append the string in correct way? 
  Please help me.
  Thanks in advance.</p>