Implemented uniqueCharacters functions.