Update InputFormatValidator.java

containsOnlyNymbersAndDot