support empty strings
Merge pull request #22 from bit/empty_string

support empty strings