Removes any occurrences of the characters specified in trimChars from the end of the original text value.