Handle negative numbers on length input.
Merge pull request #212 from shans/handle_negatives

Handle negative numbers on length input.