Seeing your original line of code from your sample code, it looks you are specifying Accounting numbers formatting which actually refers to the formatting string “#,##0.00;(#,##0.00)” that contains bracket “(” symbol, see the API reference page (check the formatting string for 39):
style.setNumber(39); --> it refers to “#,##0.00;(#,##0.00)”
So, I asked you to kindly use 3 or 4 for Style.Number attribute value for your needs:
Well, it is better you should use Cell.getDisplayStringValue() although you may also use cell.getStringValue() method.
Well, if you need to get/set the localized formattings, you have to use the certain Style method (e.g you need to use your custom formatting string that contains local accounting or currency symbols or chars). For example, you can use getCultureCustom()/setCultureCustom(java.lang.String value) to get/set the culture custom (locale oriented) number formatting . Otherwise, you may use getCustom() / setCustom(java.lang.String value) to get/set the custom number formatting string of a cell.
Hope, this helps a bit.