Replace items from a list