Improved value.toString().

Corrected misstake in my PR #1