cleaning weird characters function