def truncate(string, limit = nil, natural_separator = ' ')
      return string if limit.to_i == 0 # rubocop:disable Lint/NumberConversion

      helpers.truncate(
        string,
        length:    limit,
        separator: natural_separator,
        omission:  '',
        escape:    true,
      )
    end
def truncate(string, limit = nil, natural_separator = ' ')
      return string if limit.to_i == 0 # rubocop:disable Lint/NumberConversion

      helpers.truncate(
        string,
        length:    limit,
        separator: natural_separator,
        omission:  '',
        escape:    true,
      )
    end
Truncates a string to a specific limit. Return string without truncation when limit 0 or nil

 @param [String] string input strings.
 @param [Integer,nil] limit characters number to truncate to.
 @param [String] natural_separator natural separator to truncate at.
 @return [String] truncated string.