Added the string function to the code and tested it for errors.
Added the array function and tested it for errors.