Remove extra space in modified trees before sending to web demo.