Move from String.format to StringBuilder to save performance