code: public int lengthOf(String value) {
          int length = 0;
          if (value != null) {
              length = value.length();
          }
          return length;
      }
docs: Determines length of string.
  @param value value to determine length of
  @return length of value