Right-trims str to maxLen characters and adds an ellipsis to the end if the input string was shortened.
str
maxLen
Right-trims
str
tomaxLen
characters and adds an ellipsis to the end if the input string was shortened.