Remove characters from string

Former Member
Former Member
I have string like
var myString="Hello world!!"

Is any standard way to remove, character with index 3 from this string?
  • If you want to remove the 3rd character, try something like this:

    var str="1234567";
    var newStr=str.substring(0,2)+str.substring(3,str.length());
    Sys.println("newStr="+newStr);


    Output is: newStr=124567

    (the 3 has been removed)