padding/unpadding with zero or string