split output on space and char