public ArrayList<String> generateSpaces(String docContents) {
        ArrayList<String> tokens = new ArrayList<>();
        docContents = docContents + " ";
        char[] docChars = docContents.toCharArray();

        StringBuilder currentToken = new StringBuilder();
        boolean tokenFlag = false;

        for (int i = 0; i < docChars.length; i++) {
            String currentChar = String.valueOf(docChars[i]);
            if (currentChar.matches("\\s")) { //is a space
                currentToken.append(currentChar);
                tokenFlag = true;
                //?maybe?need a break here? to go to next letter
            } else { //currentchar is a alphanumeric character
                if (tokenFlag) { //end of a token, add and reset
                    tokens.add(currentToken.toString());
                    currentToken.setLength(0);
                    tokenFlag = false;
                } else {
                    // do nothing
                }
            }
        }
        return tokens;
    }