prune empty lines