Implement list replace