Cleans up new character code