removes excess text