public static boolean isMostlyNumeric(String var) {
		if (Functions.isEmpty(var)) return false;
		//int digits = 0; // these were put here in case we wanted to do some statistical analysis as part of this routine.
		//int letters = 0;
		// if first or last are digits, keep.
		if (ctype_digit(var.charAt(0))) return true;
		if (ctype_digit(var.charAt(var.length()-1))) return true;
		int len = Functions.strlen(var);
		if (len > 2) {
			var = Functions.substr(var,0,3);
		}
		boolean containsNonDigits = var.matches("^(.+)?[^0-9\\.](.+)?$");
		return !containsNonDigits;
	}