Synopsis:
new_string=strrtrim(str[,char])
Arguments:
str - The string from which to strip the given character
[char] - Optional argument giving the character to strip from the right hand side of the string (defaults to space character).
Description: This function strips the given char from the right hand side (the end) of the given string, str. If char is not specified then it defaults to the space character.
For example:
string="the cat sat on the mat ";
// This will return "the cat sat on the mat"
new_str=strltrim(str);
string="1234!!!!!!!!!";
// This will return "1234"
new_string=strltrim(string,"!");
Returns: Returns the new string with all char removed from the end of the string.