Algorithms designed to remove the duplicate characters in a string