Why? String must use special hash algorithm, IMO. It mut be faster, oriented to graphical chars and possibly safe string order. I think, there is good to write foreached AA in alphabetical order. Anyway I've copied druntime implementation