Truncate string to maximum given length if needed and append string at the end (by default "...")
String value to be truncated
Maximum allowed length
String to append at the end, be default "..."
Truncated value if needed otherwise original value
Truncate string to maximum given length if needed and append string at the end (by default "...")