Remove the duplicate charactes