Add function and update function

Add function to check that a passes array only contains strings

Update function to copy if the passed in key is an array of strings