title: Replace specific section of string text when string length is dynamic
body: <p>I am trying to work on a string manipulation using sql that changes the text after 'str[' (having already go the string from a table using a dbo.function). </p>
  
  <p>The original string looks like this: </p>
  
  <p><code>2.2.2.3[1.2.3] - 4.3.2.1 - t+ 3 - kb - str[8.6.5.4.3]</code></p>
  
  <p>and the result this :</p>
  
  <p><code>2.2.2.3[1.2.3] - 4.3.2.1 - t+ 3 - kb - str[10.8.6.5.4]</code></p>
  
  <p>The string can often be larger or smaller in length of characters before 'str[' and because there are brackets throughout the string, I can't use these as something to hold onto. Just wondering if anyone has some suggestions.</p>