String capitalize(String input) => input.replaceFirstMapped( RegExp(r'(^|\s)[a-z]'), (match) => match.group(0)!.toUpperCase());