cartoon character with a hat and sword