text filterer in objective-c