In most cases, uppercase and lowercase characters are considered distinct and are treated as separate entities. However, if you want to consider them as the same, you can convert all characters to either uppercase or lowercase before performing the substring analysis.