Remove empty element from major text