splice @chars, $pos, length $insert, $insert;