Delete a substring in a string between two words

Absolutely! Some programmers start off thinking “which way of coding this statement will be fastest?”. But focusing on such small details too early will usually give a misleading notion of the actual impact on performance. Only by profiling the complete code can you reliably find where the actual bottlenecks are! This is especially true when a GUI is involved, because we humans are geologically slow compared to modern computers. IN many cases a calculation is so much faster than we can perceive that even a factor of 10 speedup is undetectable.