replaceItem method

Length replaceItem(
Length item,
int index
)