title: How to check if [request responseString] is equal to some other string?
body: <p>For example [request responseString]'s value sent by my servlet to my iphone application is  "myinfo". In my iphone application, I made a string like this:</p>
  
  <pre><code> NSString *str = @"myinfo";
  </code></pre>
  
  <p>then i have if else </p>
  
  <pre><code> if([responseString isEqualToString:str]){
      NSLog(@"condition true");
  
  }else{
          NSLog(@"condition false");
  }
  </code></pre>
  
  <p>in console its always showing "condition false". Whats the problem? Isn't isEqualToString is write method to check if strings are equal or not? Thanks in advance.</p>