filter input mask characters