Rename `is_valid_length` to `is_positive_int`

Also use it to perform a validation check in `generate_iplum`.
Make method private
Merge pull request #24 from Ichimonji10/refactor-string-length

Rename `is_valid_length` to `_is_positive_int`