replace raw-strings for types by class Type