Trims a number of characters from the right hand side of a string.
StringTrimRight ( "string", count )
If count is out-of-bounds, an empty string is returned.
StringTrimRight($str, $n) is functionally equivalent to StringLeft($str, StringLen($str) - $n)
StringCompare, StringInStr, StringLeft, StringLen, StringLower, StringMid, StringReplace, StringRight, StringSplit, StringTrimLeft, StringUpper
#include <MsgBoxConstants.au3>
Local $sString= StringTrimRight ("This is a sentence with whitespace.",5); Remove the 5 rightmost characters from the string.
MsgBox ($MB_SYSTEMMODAL,"",$sString)