NSString Indices invalidated potentially after it has been bridged to String and manipulated

Thank you for all your replies, especially for the example that @Michael_Ilseman provided.

Here is my another question, if you are interested, please help.

String.UnicodeScalarView.Index issue