Using java.text.DecimalFormat instead of String.replace(",",".")
Also fixed an issue with the plunge code