getSubstring of exponent within solveWhenXisOne() + getHighestDegree() modified