Convert value to string
Updated version