changed the padding to the according alignment
added test for a single character