@@ -1515,15 +1515,15 @@ */ new->isa = [OFString class]; return new; } -- (OFString*)stringByDeletingLeadingAndTrailingWhitespaces +- (OFString*)stringByDeletingEnclosingWhitespaces { OFMutableString *new = [[self mutableCopy] autorelease]; - [new deleteLeadingAndTrailingWhitespaces]; + [new deleteEnclosingWhitespaces]; /* * Class swizzle the string to be immutable. We declared the return type * to be OFString*, so it can't be modified anyway. But not swizzling it * would create a real copy each time -[copy] is called.