Utility function to check for empty-ish strings.