how INPUT MASK works?