explode a string into an array