change: function seg_remove will remove a segment of passed argument.