Fix ::stripDuplicates() and extend capabilities of ::buildCharList()