Adding asserts to String filter
Merge pull request #973 from odiel/patch-2

Adding asserts to String filter