Added valueToString method