Modify filterInput pattern