Removal of useless characters