equalsIgnoreCase() method compares this String to another String, ignoring case considerations. Two strings are considered equal ignoring case if they are of the same length and corresponding characters in the two strings are equal ignoring case.
Read moreDoes string contain ignore case Java?
Yes, contains is case sensitive . You can use java.
Read more