rm one extra comma when printing the char