capitalize method

String capitalize()

Capitalize string

Implementation

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