The chop() function will remove a white space or other predefined character from the right end of a string.

This function is an alias of the rtrim() function.Syntaxchop(string,charlist)

Parameter Descriptionstring Required. Specifies the string to checkcharlist Optional. Specifies which characters to remove from the string.The following characters are allowed and is set to be removed if the charlist parameter is empty: