if(sb.length() > 0){ sb.deleteCharAt(sb.length() - 1); }
myString = myString.Substring(0, myString.Length-1);
Remove test