fix determine the length of the string in adv inv