Removing extra characters