Lightweight input masking for numerical inputs