Added basic logic for parsing a filtering string