python compare strings case insensitive code example Example: how to make a string case insensitive in python if thing.lower() == "text":