capitalizeFirst method
- String s
Uppercase first letter inside string and let the others lowercase Example: your name => Your name
Implementation
static String capitalizeFirst(String s) {
if (isNullOrBlank(s)) {
return null;
}
return s[0].toUpperCase() + s.substring(1).toLowerCase();
}