Add required check for empty string
Merge pull request #4 from mnmly/fix/empty-string

Add required check for empty string