updates to array and string