fix to filter allowing spaces