Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      Using log As New uCalc.String("INFO: Task complete. ERROR: File not found.")
         
         '// Chain After() to isolate the error, then Replace() to modify it.
         Dim errorDetails = log.After("ERROR: ").Replace("File", "Resource")
         
         Console.WriteLine($"Original log: {log}")      '// The original string is modified in-place
         Console.WriteLine($"Modified details:{errorDetails}") '// The view reflects the change
      End Using
   End Sub
End Module