Capitalize the first letter of a string
static String capitalize(String text) { if (text.isEmpty) return text; return text[0].toUpperCase() + text.substring(1); }