# File lib/active_support/core_ext/string/access.rb, line 79
    def first(limit = 1)
      if limit == 0
        ''
      elsif limit >= size
        self
      else
        to(limit - 1)
      end
    end