Modify append and length, no need to judge if x is null.