truncator
/ˈtrʌŋkeɪtər/Definitions
1. noun
A person or thing that truncates, or a device that cuts off part of something, especially a string of characters.
“The truncator function was used to shorten the lengthy text to fit within the character limit.”