Remove extra characters