Fixed enumeration exception & IsNullOrEmpty used on strings.