format thousands correctly