Adding asserts to String filter
Merge pull request #972 from odiel/patch-1

Adding asserts to String filter