Added text filter.

Fixes #2.