import re


def incrementName(name):
    """ simple version of adding new trailing number

    :param name: object to add trailing number to
    :type name: string
    :return: objects name with new trailing number
    :rtype: string
    """
    trailingNumber = re.compile(r'\d+$')
    m = trailingNumber.search(name)
    if m:
        i = m.group(0)
        return "%s%s" % (name[:-len(i)], int(i) + 1)
    return name + '1'