capitalize method
Implementation
String capitalize() {
if (isEmpty) {
return this;
}
return this[0].toUpperCase() + substring(1);
}
String capitalize() {
if (isEmpty) {
return this;
}
return this[0].toUpperCase() + substring(1);
}