public TokenString removeWhitespace() {
        boolean finished = false;

        if (empty()) {
            return this;
        }

        while (!finished) {
            for (int i = 0; i < tokenList.size(); i++) {
                if (tokenList.get(i).type == TokenType.WHITESPACE) {
                    tokenList.remove(i);
                    continue;
                } else {
                    if (i == tokenList.size() - 1) {
                        finished = true;
                    }
                }
            }
        }

        return this;
    }