text cleanup on index