how to format a string in java