String string1 = "abCdefGhijklMnopQrstuvwYz"; String string2 = "ABC";
I had been using string1.startsWith(string2), which would return false in the above example, but now I need to ignore case sensitivity, and there is not a String.startsWithIgnoreCase().
Besides doing
string1.toLowerCase.startsWith(string2.toLowerCase());
is there an efficient way to see if string1 starts with string2 in a case-insensitive way?