Parameters
- input
- The string to keep within the specified limit.
- maxLength
- The maximum length of the string.
Return Value
If the input string is less than or equal to the maxLength, the original string is returned.
If the input string is greater than maxLength, the string is truncated to the correct length.