modified hashing algorithm for an array. discard formatting strings.