string str = \"Student_123_\";
I need to replace the last character \"_\" with \",\". I did it like this.
str.Remove(str.Length -1, 1)