Got rid of regular expression in isAllDigits, slightly faster I guess...