See also Selenium IDE string operations with executeScript_Sandbox - it has examples for removing characters from string.