public static String internIfNotNull(String s) {
    if (s != null) s = s.intern();
    return s;
  }
Interns all the strings in the given array in place, returning the same array
common/src/java/org/apache/hadoop/hive/common/StringInternUtils.java