Make custom models work with traditional strings