filterInput function

Filter Input