public static boolean commentProvided(char[] chars) {
    for (char achar : chars) {
      if (achar != 0x00) {
        return true;
      }
    }
    return false;
  }
Finds trimmed length of utf-8 string
common/src/java/org/apache/hive/common/util/HiveStringUtils.java