replaceAllToLowerCase method
Replaces all occurrences of the given pattern with the specified replacement and returns the result in lowercase.
Implementation
String replaceAllToLowerCase(Pattern pattern, String replace) {
return replaceAll(pattern, replace).toLowerCase();
}