565Stripping Characters from an NSString
NSString *stripped = [unstripped stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"\n\t "]];
Well, Cocoa, a bit of too much syntactic nutrasweet here. Take a look at PHP and wheep:
$stripped = trim($unstripped);
(Yes, I am aware that's somewhat of an unfair comparion, but still...)