revert TextType mapped to string