Test sanitizeText in printer class