Fix: string filter was broken

Also added a few unit tests