Simplifying expressions with negative and 0 exponents