Generates a hashcode for the string array