delete extra characters