How to terminate variable expansion to create a string in Powershell

powershell

Solution

Use curly braces, `{` and `}`, to delimit the variable expansion. For example:

PS C:\> $StringToAdd = "iss"
PS C:\> $CompeteString = "Miss${StringToAdd}ippi"
PS C:\> $CompeteString
Mississippi

Problem

How do I tell powershell the end of a variable to be expanded into a string when it sits next to other alphabetic characters? $StringToAdd = "iss" $CompeteString = "Miss$StringToAddippi" Thanks!

Original source