Is there any way to design a hash function to detect strings of type:

abcdef, defabc

Notice that one is formed just by rotation of the other .. is it possible to make a hash function H such that

H("abcdef")=H("defabc")

Thank you