Is there a JavaScript function that allows to to strip all the blank spaces to the right of the last character. I know VBScript has a RTrim function, does JavaScript have an equivilent?