fix attribute type and make value strings