compare functionality issue asp.net
<p>I need to compare two string and get both duplicate and original value  .<br>
On calling chkDuplicateValue function i need to get both duplicate and original in the return value ?
, acts as delimeter for both the string .
Dim oldStr As String = "test1,test2,test"
Dim newStr As String = "test,test53"
Example out put : Original Value :test1,test2,test,test53  duplicate Value : test</p>

<pre><code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim oldStr As String = "test1,test2,test"
Dim newStr As String = "test,test53"
Dim refinedString As String = chkDuplicateValue(newStr, oldStr)
</code></pre>

<p>'On calling this function i need to get both duplicate and original in the return value ?</p>

<pre><code>Response.Write("Original Value" &amp; refinedString(0))
Response.Write("duplicate Value" &amp; refinedString(1))
'Example out put : Original Value :test1,test2,test,test53  duplicate Value : test
End Sub

Function chkDuplicateValue(ByVal newStr As String, ByVal oldStr As String) As String
    Dim duplicate As String = ""
End Function
</code></pre>
