@staticmethod
def case_insensitive_comparison(str1, str2):
if str1 == str2:
return True
elif str1 is None or str2 is None:
return False
else:
return str1.upper() == str2.upper()
Is there a better way to do string comparison with none val can be expected?