title: componentsSeparatedByCharactersInSet gives me a bunch of empty strings
body: <p>OK, first and foremost, I am using GNUStep as a way to learn Objective-C, so there may be some differences between the GNU and the Apple implementation. That being said, it shouldn't affect my question.</p>
  
  <p>Anyways, to understand my conundrum, please parse the following code into your visual receptacles:</p>
  
  <pre><code>#import &lt;Cocoa/Cocoa.h&gt;
  int main()
  {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    NSEnumerator * LineEnumerator = [[NSArray arrayWithObjects: @"Jim     1", @"Steve   3", nil] objectEnumerator];
    NSString * s;
    while((s = [LineEnumerator nextObject]))
    {
      NSArray * parts = [s componentsSeparatedByCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
      NSLog(@"%@", parts);
    }
    [pool drain];
    return NO;
  }
  </code></pre>
  
  <p>And the following output:</p>
  
  <pre><code>2010-10-07 10:03:50.809 a.out[24512] (Jim, "", "", "", "", 1)
  2010-10-07 10:03:50.812 a.out[24512] (Steve, "", "", 3)
  </code></pre>
  
  <p>My expected output would be:</p>
  
  <pre><code>2010-10-07 10:03:50.809 a.out[24512] (Jim, 1)
  2010-10-07 10:03:50.812 a.out[24512] (Steve, 3)
  </code></pre>
  
  <p>But the componentsSeparatedByCharactersInSet seems to be the only method that comes close to what I am looking for (by the way, I want to be prepared for any mixture of spaces, tabs, or other whitespace characters). Is there an easy way to do this with the standard libraries without writing a new method?</p>