cleaning code of character