public static String makeCompliantName(String value) {
    value = value.replace(':', '-');
    value = value.replace(',', '-');
    value = value.replace('=', '-');
    value = value.replace('*', '-');
    value = value.replace('?', '-');
    if (value.length() < 1) {
      value = "nothing";
    }
    return value;
  }
Checking for String that is not null, not empty, and not white space only using standard Java
classes.

@param value String to be made compliant.
@return string compliant string.
geode-pulse/src/main/java/org/apache/geode/tools/pulse/internal/util/NameUtil.java