split input on empty lines