I am trying to trim an item called Input (object form .json file) which is inside of a foreach loop.
The code I have at the moment is:
List<string> dhurl = new List<string>();
foreach (JObject item in jArray)
{
dhurl.Add("https://" + (string)item.SelectToken("Input");
}
input adds "sm-tiktoktrends.com", I want it to only add "tiktoktrends.com", how can I use trim to remove "sm-"?
*To clarify all Input objects will need sm- removed