string chop
Returns the argument string without trailing whitespace.
Example 1. chop() example
$trimmed = Chop($line);
See also trim().