firstUpper method

String firstUpper()

Uppercase first character, keep rest as-is.

Implementation

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