fixing is_valid to detect empty strings
Merge pull request #7 from radremedy/issue-6-isvalid-test

Fixing is_valid to detect empty strings