debugging text cleanup