Func Rtrim
# VBScript RTrim Function
* * Complete VBScript Reference Manual](#)
* * *
The RTrim function removes spaces from the right side of a string.
**Note:** See also the LTrim and Trim functions.
### Syntax
RTrim(string)
| Parameter | Description |
| :--- | :--- |
| string | Required. A string expression. |
## Example
## Example
fname=" Jack "
document.write("Hello" & RTrim(fname) & "and welcome.")
The above example outputs:
Hello Jackand welcome.
[Try it yourself Β»](#)
* * Complete VBScript Reference Manual](#)
YouTip