Simplify some methods within InputValidate.cs