Hi ruben00000,
Please refer below code.
HTML
<asp:Label ID="lblText" runat="server"></asp:Label>
Code
C#
protected void Page_Load(object sender, EventArgs e)
{
string text1 = "abcd-1 abcd-9";
lblText.Text = string.Join(" - ", text1.Split('-'));
}
VB.Net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim text1 As String = "abcd-1 abcd-9"
lblText.Text = String.Join(" - ", text1.Split("-"))
End Sub
Screenshot