getComparisonSafeString method

String getComparisonSafeString()

Same as removeDiacritics but also lowercases the string. Prefer this method when you want to compare two strings.

Implementation

String getComparisonSafeString() {
  return toLowerCase().removeDiacritics();
}