title: ios5 error when trying to shorten a string
body: <p>I have this string: "str is {(
      You,
      Me
  )}"</p>
  
  <p>Looking on SO, I found this <a href="https://stackoverflow.com/questions/1082178/objective-c-remove-last-character-from-string">post</a> and this <a href="https://stackoverflow.com/questions/6072556/how-to-delete-single-characters-in-an-uitextview">one</a> (among others)</p>
  
  <p>I want to remove the leading {( and the trailing )}</p>
  
  <p>Every solution so far has been met with an error:</p>
  
  <pre><code>-[__NSCFSet length]: unrecognized selector sent to instance
  </code></pre>
  
  <p>or a similar variant. I can print the value to the console and I can use the unfiltered "peopleExport" elsewhere in my app.</p>
  
  <p>The code I've tried so far includes :</p>
  
  <pre><code>NSString *str = (NSString *)[managedObject valueForKeyPath:@"people.name"];
  
      NSLog(@"str is %@", str);
  
      //NSString *string = @"hello one two three";
  
      //NSString *newStr = [str substringFromIndex:3];
      str = [str substringWithRange:NSMakeRange(2, str.length-2)];
  
  
      NSString *newStr;
  
      if ( [str length] &gt; 0){
          NSLog(@"a");
      newStr = [str substringFromIndex:2];
      } else {
          NSLog(@"b");
          newStr = str;
      }
  
      NSLog(@"%@", newStr);
  
      peopleExport = newStr;
  </code></pre>
  
  <p>The source is from a core data store. Does that matter?</p>
  
  <p>I would appreciate any pointers.</p>