firstUpper method
Uppercase first character, keep rest as-is.
Implementation
String firstUpper() {
if (isEmpty) return this;
return this[0].toUpperCase() + substring(1);
}
Uppercase first character, keep rest as-is.
String firstUpper() {
if (isEmpty) return this;
return this[0].toUpperCase() + substring(1);
}