capitalize method

String capitalize()

capitalize first letter of string

Implementation

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