ucfirst method

String ucfirst()

Capitalizes the first character of the string.

Implementation

String ucfirst() {
	return "${this[0].toUpperCase()}${this.substring(1)}";
}