NSString Somehow turn in to an "__NSArrayI" object <p>i am receiving response from my server, it looks like this :</p> <pre><code>2012-09-12 16:29:11.690 WhatIsIt[1763:707] ( { qid = ebb81a9c0c2125c9f12fee33c281dfe2ef5c1596; "qid_data" = { labels = Wristwatch; }; } ) </code></pre> <p>when i am parsing the <code>"qid"</code> value like this :</p> <pre><code>- (void)updateCompleteWithResults:(NSArray*)results{ NSLog(@"%@",results); NSString *qid = [results valueForKey:@"qid"]; </code></pre> <p>the <code>NSString</code> object is getting a Parentheses around the string (i dont know how) looks like this :</p> <pre><code>2012-09-12 16:34:17.979 WhatIsIt[1785:707] ( 2e1da5854f3b4f02cd967293cd1364e6d3e0b76a ) </code></pre> <p>so i tried to use :</p> <pre><code>NSString *string = @" spaces in front and at the end "; NSString *trimmedString = [string stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]]; </code></pre> <p>and the app crashes, any idea?</p>