exploded function, to explode a string, and pad the remainder with an array of defaults