code: public static String capitalise(String text) {
          if (empty(text)) {
              return "";
          }
          return text.substring(0, 1).toUpperCase() + text.substring(1);
      }
docs: Capitalise the given text