Added ToString() and ToWString() functions