How he got his name was an incredibly stupid story.
Meeting Chewbacca seemed like a mere plot convenience to get Han out of jail. It was: We're stuck together in the jail. Lets escape. Now we're friends! Resume pointless story about the girl that we know has no relevance.