title: NSString isEqualTo packets not working?
body: <p>I have a python chat server and the iPhone is the client to the server.
  I send a message to the Python server and the iPhone recieves it and NSLogs it out just fine. But if I use: </p>
  
  <pre><code>if ([output isEqualToString:@"hello"]) {
      NSLog(@"Hello!");
  } 
  </code></pre>
  
  <p>But it doesnt do anything (I have sent hello out in the chat). output is an <code>NSString</code> formatted like this:
  <br></p>
  
  <pre><code>NSStirng * output = [[NSString alloc] initWithBytes:buffer length:NSUTF8StringEncoding];
  </code></pre>
  
  <p>I can NSLog it out fine, but I cannot use if statements with it.
  Does anyone know a solution?
  Thanks!
  <br></p>
  
  <p><b>Im new to packet programming so excuse my ignorance. Im using TCP packets by the way</b></p>