Added check for nil or null string in hash creation
Merge pull request #2 from billburgess/stringcheck

Added check for nil or null string in hash creation