ignore 0-length text.
clean up code.