mystring.replace(/r/g, '')
newString = originalString.replace('G', ''); // (oldchar, newchar)
removeFirstChar = str.slice(1);
removeLastChar = str.slice(0, str.length - 1);
substr() – removes a character from a particular index in the String.
replace() – replaces a specific character/string with another character/string.
slice() – extracts parts of a string between the given parameters.
let a = "123,456,789"; // remove all , in string
a = a.split(',').join('');
string.replace('characterToReplace', ''); // removes first match