equals
Returns true if this string is equal to other, optionally ignoring character case.
Two strings are considered to be equal if they have the same length and the same character at the same index. If ignoreCase is true, the result of Char.uppercaseChar().lowercaseChar() on each character is compared.
Since Kotlin
1.0Parameters
ignoreCase
true to ignore character case when comparing strings. By default false.