constantify text code