check for empty strings
fixes #38