capitalize method

String capitalize()

Needed for capitalizing the the class and Constructor names

Implementation

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