Implemented dinhviethoa's recommended changes.

Renamed lengthenUrl method. Added a check for null longUrl in this
method. Updated comment formatting.