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.
string.replace('characterToReplace', ''); // removes first match