trimRight Summary Removes whitespace from the end of the string. Usage public string trimRight() Returns The string with whitespace from the end removed. Description Removes whitespace from the end of the string. Examples Basic Usage 1234import System; string foo = " foo ";Console.log(foo.trimRight()); // " foo" Share HTML | BBCode | Direct Link