output text cleanup