Add function to turn an array into a string

Will be used with a hashtable to ensure shuffle algorithm is fair.