Garry's Mod Wiki

string.TrimRight

  string string.TrimRight( string str, string char = "%s" )

Description

Removes trailing spaces/passed character from a string.

Arguments

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

Returns

1 string
Trimmed string