Replaces all occurrences of a substring with a new value.
String replaceAllOccurrences(String input, String from, String to) { return input.replaceAll(from, to); }