Handle negative numbers on length input.