title: indexOfObject does not match correctly
body: <p>I've been stuck with this problem from a couple of days and I can't get myself out of it.
  I've searched all over the net, but I couldn't find anything useful to solve my issue.</p>
  
  <p>this is the scenario.</p>
  
  <p>I've got an array of strings containing a bunch of ids fetched from a coredata sqlite db and 
  I'd like to know the index of a certain element into this array.</p>
  
  <p>My first solution would have been as easy as using indexOfObject</p>
  
  <pre><code>-(NSInteger) getPageId:(NSString *)symbol_id {
      NSInteger refId = [myIds indexOfObject:symbol_id];
      // .. stuff ..
      return refId;
  }
  </code></pre>
  
  <p>now, I don't know why, but the returning value of the function is always NSNotFound.
  If I print out the values via NSLog</p>
  
  <pre><code>NSLog(@"%@\n%@", myIds, symbol_id);
  </code></pre>
  
  <p>I can clearly see that the value I'm searching for figures out into the elements of the array.</p>
  
  <p>I've even tried a dumbest solution, like probing the match via isEqual function into a for loop:</p>
  
  <pre><code>int idx = 0;
  for(NSString *tok in myIds) {
     if([tok isEqual:synmbol_id])
     {
       NSLog(@"yay, a match was encountered!!");
       return idx;
     }
     idx++;
  }
  </code></pre>
  
  <p>but the execution never gets into the NSLog.</p>
  
  <p>I dunno where to knock my head.</p>
  
  <p>hope that some of you already figured this out and could explain this to me.</p>
  
  <p>thx in advance</p>
  
  <p>k</p>