isPotentialMatch now checks that the number is shorter than the max length.