implemented string serialzer