Format arbitrary input into multiple columns