Check for empty string instead of zero length #3