I have a problem replacing a certain string inside another string using a function. For some reason, the final string is still the same. Here is my code:
Private Function RemoveSomeChars(ByVal song As String)
Dim finalSong As String = song
If finalSong.ToLower.Contains("official") Then
finalSong.ToLower.Replace("official", "")
End If
Return finalSong
End Function
And I use it like this:
MsgBox(RemoveSomeChars(currentSong))
.ToLower().