class HumanReadableSize {

    public static String[] sanitize(final String size) {
        LOG.debug("Sanitizing '{}'", size);
        final Pattern patternClass = Pattern.compile("([0-9.]+)\\s*?([kMGTP]?B)");
        final Matcher m = patternClass.matcher(size);
        String[] s = new String[]{size, "B"};
        if (m.find()) {
            final String pureSize = m.group(1);
            final String sizeClass = m.group(2);
            s = new String[]{pureSize, sizeClass};
        }

        if(LOG.isDebugEnabled()) {
            LOG.debug("Sanitized: {}", Arrays.deepToString(s));
        }
        return s;
    }

    private  HumanReadableSize();

}