apollo-core/src/main/java/com/ctrip/framework/apollo/core/utils/StringUtils.java/StringUtils/trimToNull
class StringUtils:  public static String trimToNull(String str) {
    String ts = trim(str);
    return isEmpty(ts) ? null : ts;
  }