Change the output according to java backend "toString" method