private int detectHashIndex(char HashLabel) {
        if((int)HashLabel < 65) {
            return 0;
        }
        else if(HashLabel >= 'A' && HashLabel <= 'z') {
            int index = HashLabel, val = 27;
            if(index > 64 && index < 92) {
                val = index - 64;
            }
            else if(index > 96 && index < 124){
                val = index - 96;
            }
            return val;
        }
        else {
            return 27;
        }
    }