Support varchar and char in result formatting