String deCapitalize(String input) => input.replaceFirstMapped( RegExp(r'(^|\s)[A-Z]'), (match) => match.group(0)!.toLowerCase());