The character is loosely (very loosely) based on the character of the same name created by Sidney Porter aka O. Henry.