To concatenate or combine two strings, you can use the .
operator:
$x $y |
The result of the example above is “HelloWorld,” with no space between the two words.
You can add a space character like this:
$x |
A simpler and more effective approach is to use double quotes.
By placing the two variables inside double quotes with a space between them, the space will be included in the result as well:
$x |