I agree with Franklin2, there is no need to be replacing brake lines - steel or rubber -in an
attempt to cure symptoms like these.
In my case, the problem was resolved by bleeding the brake system including the
combination proportioning/metering/differential valve.