Serialize and Deserialize to string