diff --git a/content/csharp/getting-started/strings.md b/content/csharp/getting-started/strings.md index abecbff..c08aa18 100644 --- a/content/csharp/getting-started/strings.md +++ b/content/csharp/getting-started/strings.md @@ -200,7 +200,7 @@ Note in the last example that multiple methods are chained together, such that t ## Replacing Parts of Strings -A frequent scenario when working with strings is the construction of a string that is composed of some fixed parts, and a part that is variable. You saw in the [last lesson](types-variables) how you could construct such a string using ``$"Hello {name}!`` syntax. This is known as *string interpolation*, and is a new feature in C# 6. The same string can also be constructed using concatenation (`` "Hello " + name + "!"``). Strings also support rich formatting, which at its simplest allows for this kind of replacement. To use string formatting, you specify a format string, which includes special placeholder values, and pass the format string and the replacement values to the ``Format`` method. Finally, you can use the ``Replace`` method to replace part of a string with another string. Consider the following examples: +A frequent scenario when working with strings is the construction of a string that is composed of some fixed parts, and a part that is variable. You saw in the [last lesson](types-variables) how you could construct such a string using ``$"Hello {name}!"`` syntax. This is known as *string interpolation*, and is a new feature in C# 6. The same string can also be constructed using concatenation (`` "Hello " + name + "!"``). Strings also support rich formatting, which at its simplest allows for this kind of replacement. To use string formatting, you specify a format string, which includes special placeholder values, and pass the format string and the replacement values to the ``Format`` method. Finally, you can use the ``Replace`` method to replace part of a string with another string. Consider the following examples: ```{.snippet} string name = "Steve";