I am getting values separately i need to add all of them but dont want no service plan

i am creating a string that is adding up togetter
ex: get - Get Small , No service plan , Get - Medium , No service plan , No service plan
( i have placed commas for better understanding)
I Just need to get : Get Small , Get - Medium so i want to removed No service plan from the line

Option Regex:

Option Split, Join

Hi @manojv02500

You can try this syntax,

string.join(",",strText.Replace(“No service plan”,"").Split(","c).AsEnumerable().Where(function(d) not String.IsNullOrWhiteSpace(d.ToString)))