class StringUtils {

    public static final byte[] getBytesFromArraysToString(final String bytesString) {
        ParametersChecker.checkParameter("Should not be null or empty", bytesString);
        final String[] strings = bytesString.replace("[", "").replace("]", "").split(", ");
        final byte[] result = new byte[strings.length];
        try {
            for (int i = 0; i < result.length; i++) {
                result[i] = (byte) (Integer.parseInt(strings[i]) & 0xFF);
            }
        } catch (final NumberFormatException e) {
            throw new IllegalArgumentException(e);
        }
        return result;
    }

    private  StringUtils();

}