Test if a NSString is nil
if ([myString length] == 0) {
}
Split a string
NSArray *myArray = [myString componentsSeparatedByString: @"|"];
Trim a string
NSString *trimmedString = [myString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
Capitalizing First Word In a String
[myString stringByReplacingCharactersInRange:NSMakeRange(0,1) withString:[[myString substringToIndex:1] uppercaseString]];