replaceWithOriginalCase method
Replaces the first occurrence of the given pattern with the specified replacement and returns the result as a String.
Implementation
String replaceWithOriginalCase(Pattern pattern, String replace) {
return replaceFirst(pattern, replace);
}