remove useless characters