Convert array to string before hashing