So, I found something called MoneyLib which can convert a number like $50000 to $50,000.
I was wondering how I can use it.
With a quick search, I found an answer by @Blockzez.