Append an ellipsis to a string that exceeds a specified max-width.