#TodayILearned that to remove the two different timestamps I tend to use you can do this in Powershell

 # Strip YYMMDDHHMISS
$ErrorText = $ErrorText -replace "_\d{12}", ""

 # Strip YYYYMMDDTHHMISSnnnn
$ErrorText = $ErrorText -replace "_\d{8}T\d{10}", ""