Woody from Toy Story - Has there ever been a main hero in a child's story as petty?

Of course, in “Toy Story,” there IS a younger sibling on the way, just in case you missed the parallel.

It seems to me that main characters who turn from jerks to heroes are actually pretty common in children’s literature. What about the Grinch?