Log and text cleanup