Remove spaces before commas in string

Hi @macaskillh

You can also try on with Regex replace

System.Text.RegularExpressions.Regex.Replace(strvariable,”\s(?=\,)”,””)

Regards
Sudharsan