typeString reworked