<p>removeSquareBrackets.</p>

@param value a {@link java.lang.String} object.
@return a {@link java.lang.String} object.
11123
protected String removeSquareBrackets( String value )
    {
        if (value.startsWith( "[" ) && value.endsWith( "]" ))
            return value.substring( 1, value.length() - 1 );
        else
            return value;
    }
1108760
public static String replaceSupplementary(final String value)
    {
        return InterpolationHelper.replaceSupplementary(value, new Replacer()
        {
            public String replace(String in)
            {
                return Strings.nullToEmpty(UCharacter.getName(in, ", "));
            }
        });
    }
974425
public static Prefer valueOf(final String value) {
        if (value != null) {
            final Map<String, String> data = new HashMap<>();
            final Set<String> params = new HashSet<>();
            stream(value.split(";")).map(String::trim).map(pref -> pref.split("=", 2)).forEach(x -> {
                if (x.length == 2) {
                    data.put(x[0].trim(), x[1].trim());
                } else {
                    params.add(x[0].trim());
                }
            });
            return new Prefer(data.get(PREFER_RETURN), parseParameter(data.get(PREFER_INCLUDE)),
                        parseParameter(data.get(PREFER_OMIT)), params, data.get(PREFER_HANDLING));
        }
        return null;
    }
814789
public static String removeNonWords(final String value) {
        validate(value, NULL_STRING_PREDICATE, NULL_STRING_MSG_SUPPLIER);
        return value.replaceAll("[^\\w]+", "");
    }
51097
private static final ArrayList<String> convertStringToArrayList(String value) {
        if (value != null && value.length() > 0) {
            ArrayList<String> result = new ArrayList<String>();
            StringTokenizer st = new StringTokenizer(value, STRING_ATTRIB_DELIM);
            while (st.hasMoreTokens()) {
                String nextString = unescape(st.nextToken());
                if (nextString != null) {
                    result.add(nextString);
                }
            }
            return result;
        }
        return null;
    }
722770
public static String replaceSystemProperties( String value )
	{
    	// Dumb case
    	if (value == null || value.length() == 0)
    		return value;
    	
    	StringBuilder sb = new StringBuilder();

		int pos = 0;
		int start;
		
		while ((start = value.indexOf("${",pos)) != -1)
		{
			if (start > pos)
				sb.append(value.substring(pos,start));
			
			int end = value.indexOf('}',start+2);
			if (end == -1)
			{
				pos = start;
				break;
			}
			
			String varName = value.substring(start+2,end);
			String varValue = System.getProperty(varName,"${"+varName+"}");
			sb.append(varValue);
			
			pos = end+1;
		}
		
		// Append remaining
		if (pos < value.length())
			sb.append(value.substring(pos));

		return sb.toString();
	}
278596
public String clean(String value) {
    String orig = value;
    
    // check if there's a + before the first digit
    boolean initialplus = findPlus(value);
    
    // remove everything but digits
    value = sub.clean(value);
    if (value == null)
      return null;

    // check for initial '00'
    boolean zerozero = !initialplus && value.startsWith("00");
    if (zerozero)
      value = value.substring(2); // strip off the zeros

    // look for country code
    CountryCode ccode = findCountryCode(value);
    if (ccode == null) {
      // no country code, let's do what little we can
      if (initialplus || zerozero)
        return orig; // this number is messed up. dare not touch
      return value;

    } else {
      value = value.substring(ccode.getPrefix().length()); // strip off ccode
      if (ccode.getStripZero() && value.startsWith("0"))
        value = value.substring(1); // strip the zero

      if (ccode.isRightFormat(value))
        return "+" + ccode.getPrefix() + " " + value;
      else
        return orig; // don't dare touch this
    }
  }
882583
protected static String unescape(String value) {

        value = CmsStringUtil.substitute(value, "\\,", ",");
        value = CmsStringUtil.substitute(value, "\\=", "=");
        value = CmsStringUtil.substitute(value, "\\\\", "\\");

        return value;
    }
282753
public String cleanupPreFormatted(String value) {
        String result = value;
        if (value != null) {
            Matcher matcher = PRE_FORMATTED_PATTERN.matcher(value);
            if (matcher.matches()) {
                String escapedBody = matcher.group(1);
                result = StringEscapeUtils.unescapeHtml4(escapedBody);
            }
        }
        return result;
    }
497402
public String convert(final String value) {

        if(!value.matches(".*[0-9].*")) {
            return value;
        }

        String str = value;
        for(int i=0; i < numMap.length; i++) {
            str = str.replaceAll(String.valueOf(i), numMap[i]);
        }

        return str;

    }
934188
public static String removeBrackets( String condition ){
        String value = StringUtils.strip( condition );
        if( value != null && value.length() >= 3 ){
            return value.substring( 2, value.length() - 1 );
        }
        return value;
    }
586359
protected final Object negate( Object value )
    {
        if (value == null)
            return null;
        
        return ((Boolean)value).booleanValue() ? Boolean.FALSE : Boolean.TRUE;
    }
704085
public void removeValue(V value) {
        if (value == null) {
            throw new IllegalArgumentException("Method argument value must not be null.");
        }
        for (Collection<V> values : values()) {
            values.remove(value);
        }
    }
1070135
private static String obfuscatePropertyValue(final String value) {
    if (value == null || value.indexOf('{') > -1)
      return value;
    return "[[[" + ObfuscationManager.obfuscate(value) + "]]]";
  }
478298
public static void notNegative(Double value) {
		if(!validation) return;
		notNull(value);
		if(value < 0)
			throw new ParameterException(ErrorCode.NEGATIVE);
	}
894264
@Override
  public synchronized void accept(final double value) {
    super.accept(value);
    final double squareValue = value * value;
    simpleSumOfSquare += squareValue;
    sumOfSquareWithCompensation(squareValue);
  }
1031621
@Override
    public String stripQuotes(String value) {
        if (null == value) {
            return null;
        }
        String modvalue = value.trim();
        if (0 == modvalue.length()) {
            return modvalue;
        }
        boolean needTrimming = false;
        int start = 0;
        if ('"' == modvalue.charAt(0) || '\'' == modvalue.charAt(0)) {
            start = 1;
            needTrimming = true;
        }
        int end = modvalue.length() - 1;
        if ('"' == modvalue.charAt(end) || '\'' == modvalue.charAt(end)) {
            needTrimming = true;
        } else {
            end++;
        }
        if (needTrimming) {
            return modvalue.substring(start, end);
        }
        return modvalue;
    }