'Remove all occurrences of chars in the Str string
Sub RemoveChars(str As String, chars As String)ti","") As String
Dim i As Int=str.IndexOf(chars)
If i>=0 Then
Dim sb As StringBuilder
sb.Initialize
sb.Append(str)
sb.Remove(i, i +chars.Length)
LogColor("New str=" & sb.ToString, Colors.blue) 'correct result is logged here
Return RemoveChars(sb.ToString, chars) 'recursive
Else
Return str 'escape
End If
End Sub