valuesToString method