shorten palendrome output