corrected replace all and new text search