search for all duplicates in string