finished example JoinStrings in chapter4