remove extra characters