reverse string
remove dup