diff --git a/Clr2Obj/NSString+CamelCaser.m b/Clr2Obj/NSString+CamelCaser.m index a6400be..cbf5bb8 100644 --- a/Clr2Obj/NSString+CamelCaser.m +++ b/Clr2Obj/NSString+CamelCaser.m @@ -28,6 +28,7 @@ - (NSString *) camelCasedString { NSString *word = comps[i]; if ([[word stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] isEqualToString:@""]) continue; + word = [word stringByReplacingCharacterSet:[NSCharacterSet controlCharacterSet] withString:@""]; word = [word stringByReplacingCharacterSet:[NSCharacterSet punctuationCharacterSet] withString:@""]; if (i == 0) { result = [result stringByAppendingString:[word lowercaseString]];