technology upgrade; (3) a decrease of $1.6 million in payroll expenses related to reduced headcount; and (4) decreases in credit card processing fees and professional fees. These decreases were partially offset by a $2.8 million increase in rent related to the sale-leasebacks of our distribution centers, higher utility costs and the general impact on expenses of opening and operating more stores. As a percentage of sales, Selling, general and administrative expenses increased to 35.6% in the first thirty-nine weeks of 2022 from 30.4% in the first thirty-nine weeks of 2021, primarily due to the deleveraging effect of lower sales.
Depreciation. Depreciation expense increased $0.6 million, or 3.8%, to $15.8 million in the first thirty-nine weeks of 2022 from $15.2 million in the same period last year.
Gain on sale-leaseback. In the first quarter of 2022, we completed a sale-leaseback transaction for our distribution center in Darlington, South Carolina that resulted in a $34.9 million gain. In the third quarter of 2022, we completed a sale-leaseback transaction for our distribution center in Roland, Oklahoma that resulted in a $29.2 million gain.
Income Tax Expense. Income tax expense was $15.6 million in the first thirty-nine weeks of 2022 compared to $14.4 million in the first thirty-nine weeks of 2021 due to higher pretax income this year, combined with a slightly higher rate because the prior year had a favorable tax impact of restricted stock vestings.
Net Income. Net income was $52.3 million in the first thirty-nine weeks of 2022 compared to $52.4 million in the same period of 2021 due to the factors discussed above.
Liquidity and Capital Resources
Capital Allocation
Our capital allocation strategy is to prioritize investments in opportunities to profitably grow our business and maintain current operations, then to return excess cash to shareholders through our repurchase programs. Our quarter-end cash and cash equivalents balance was $77.8 million compared to cash and cash equivalents and short-term investments of $47.5 million at the end of the third quarter last year. Until required for other purposes, we maintain cash and cash equivalents in deposit or money market accounts.
Our principal sources of liquidity consist of: (i) cash and cash equivalents on hand; (ii) short-term trade credit arising from customary payment terms and trade practices with our vendors; (iii) cash generated from operations on an ongoing basis; and (iv) a revolving credit facility with a $75.0 million credit commitment.
In addition, in April 2022, we completed a sale-leaseback transaction of our distribution center in Darlington, South Carolina, for pretax proceeds of $45.5 million. In September 2022, we completed a sale-leaseback transaction of our distribution center in Roland, Oklahoma, for pretax proceeds of $35.6 million.
Inventory
Our quarter-end inventory balance was $128.5 million, compared with $126.9 million at the end of the third quarter last year. The increase was primarily due to reduced inventory levels at the end of the third quarter last year driven by outsized sales, combined with opportunistic purchases of packaway inventory at the end of fiscal 2021 and during the first quarter of this year.
Capital Expenditures
Capital expenditures in the first thirty-nine weeks of 2022 were $19.2 million, a decrease of $1.6 million over the first thirty-nine weeks of 2021 as we invested in our strategic initiatives, including opening 12 new stores, remodeling 35 stores and continuing our investments in system upgrades and distribution center enhancements. We anticipate capital expenditures in fiscal 2022 of approximately $22 million.
Share Repurchases
During the first thirty-nine weeks of 2022 and 2021, we returned $10.0 million and $107.2 million, respectively, to shareholders through share repurchases. See Part II of this Report and Note 7 to the Financial Statements for more information.
Revolving Credit Facility
We have a revolving credit facility that matures in April 2026 and provides a $75.0 million credit commitment and a $25.0 million uncommitted “accordion” feature. Additional details of the credit facility are in Note 4 to the Financial Statements. At the end of the third quarter of 2022, we had no borrowings under the credit facility and $0.6 million in letters of credit outstanding.