In general, you need to somehow check for the presence and location of characters in the string.
For example, there is such a line:
Hello[]
PS [] - not an array, just a string.
You need to check the location of the characters "[]" and there, for example, put 1.
Type of such:
Hello [1]
How to do it?
Lines can be any, even though they are:
Good day, how are you? What should I do today? []
string.Replace("[]", "[1]")? - tym32167g = g.Replace("[]", "[1]");- tym32167