First, you can replace "," to another character. For example, you can change "BF002062010","1,300.00" to "BF002062010"-"1,300.00".
Then, using line = line.replace(',', ''); removes thousand comma.
Finally, you can replace "-" to replace ",".