/// Truncate a string to exactly <paramref name="maxLength"/> characters.
/// </summary>
/// <param name="str"></param>
/// <param name="maxLength">The maximum number of characters. If <paramref name="str"/> has fewer characters, it will be truncated to the length of <paramref name="str"/>.</param>