for #14, properly split and strip addresses