remove surplus character