check that link length key is a numeric string or an integer