String capitalize(String word) { if (word.isEmpty) return ''; return word[0].toUpperCase() + word.substring(1); }