when relevant content is
added and updated.
Staying with our current theme of manipulating strings this is how you find duplicate characters in a string.
Convert the string to a char array, group on the characters and use Where-Object to filter the characters that occur more than once – the duplicates. Sort the output for easier viewing.