I want to replace all substring occurrences in a string, but I wish not to use the replace method. It\'s just study interest. At the moment, experiments have led me to this: