Simplify square-root expressions