a simple way to filter strings