A simple input filter