trim NSString

NSString * string = @"\n \t\t hello string  \t\n  \n\n";
NSString * trimed = [string stringByTrimmingCharactersInSet:
             [NSCharacterSet whitespaceAndNewlineCharacterSet]]
NSLog(@"%@", trimed);