private static int estimateSize(String s) {
        if (s == null) {
            return 0;
        }
        return 2 * s.length();
    }
Tests for null or empty. Does not check for length
@param value
@return
tika-core/src/main/java/org/apache/tika/metadata/writefilter/StandardWriteFilter.java