Uneeded characters are now removed.