Stirng calc java