Garry's Mod Wiki

string.TrimRight

  string string.TrimRight( string str, string char )

Description

Removes trailing spaces/passed character from a string.

Arguments

1 string str
String to remove from
2 string char
Custom character to remove, default is a space

Returns

1 string
Trimmed string