added a basic filter for classifying strings