new function cleanPageText