php library string filter class