Removes duplicate values from a non-numeric array.