public static double getDegreeOfHydrolysis(String protein, Set<String> enzyme) {
        int count = 0;
        char[] amino = protein.toCharArray();
        
        for (String en : enzyme) {
            for (char am : amino) {
                if (en.equals(String.valueOf(am)) ) {
                    count++;
                }
            }
        }
        return (18.0*count)/(28*protein.length());
    }