Fix formatting for types with delimiters and quotes in string representation