title: How to see if an NSString starts with a certain other string?
body: <p>I am trying to check to see if a string that I am going to use as URL starts with http. The way I am trying to check right now doesn't seem to be working. Here is my code:</p>
  
  <pre><code>NSMutableString *temp = [[NSMutableString alloc] initWithString:@"http://"];
  if ([businessWebsite rangeOfString:@"http"].location == NSNotFound){
      NSString *temp2 = [[NSString alloc] init];
      temp2 = businessWebsite;
      [temp appendString:temp2];
      businessWebsite = temp2;
      NSLog(@"Updated BusinessWebsite is: %@", businessWebsite);
  }
  
  [web setBusinessWebsiteUrl:businessWebsite];
  </code></pre>
  
  <p>Any ideas? </p>