def chomp_equals(s):
    """ Input: == zomg ==,
    Output: (2, "zomg")"""
    chomped = s
    equals = 0
    while chomped and chomped[0] == chomped[-1] == '=':
        chomped = chomped[1:-1]
        equals += 1
    return equals, chomped.strip()
