def METHOD_NAME(self, obj_config_dict, avi_config, obj_type, max_char):
    """
    Trim object length
    Args:
        obj_config_dict: passed object configuration
        avi_config : passed migrated avi configuration
        obj_type : passed object type
        max_char : max allowed character for object length
    """
    cp = ConfigPatch(avi_config, '')
    for obj_config in obj_config_dict:
        if len(obj_config['name']) > max_char:
            random_str = ''.join(random.choice(string.ascii_uppercase + string.ascii_lowercase
                                               + string.digits) for _ in range(3))
            obj_config['description'] = obj_config['name']
            new_obj_name = "%s-%s" % ((obj_config['name'])[:200],random_str)
            old_obj_ref, new_obj_ref = self.get_old_and_new_obj_ref(
                avi_config, obj_config, new_obj_name, obj_config['name'], obj_type)
            cp.update_references(obj_type, old_obj_ref, new_obj_ref, avi_cfg=avi_config)
            obj_config['name'] = "%s-%s" % ((obj_config['name'])[:200],random_str)