clean up white space
do not output empty sequences that are nillable