In all cases in which lands and tenements are or shall be rented or leased, and default shall be made in the payment of the rents at the time or times agreed upon by the parties, it shall be lawful for the landlord to dispossess the tenant and all subtenants and recover possession of the premises rented or leased, in the manner herein provided.