corrected type and type checking for pad_character

should fix #33, please review