One simple solutions would be to replace the comma (',') with empty char if your string variable contains the (',') in the first place:
string sqlStatement = "<pre>UPDATE tbl SET Colname= '6277',Colname= '8/16/2017 2:39:17 PM',Where mrddmonth_review_id =448";
if (sqlStatement.Contains(',')) {
sqlStatement = sqlStatement.Replace(',', ' ');
}
Another solution would be to use the
sqlStatement.Remove()
method that string variables provide by themselves...