Fix capitalize_hook example