public void SaveButton() { ExportXML(); string savedString = exportTextCanvas.gameObject.GetComponentInChildren <InputField> ().text; if (savedString.Contains("'")) { savedString.Replace("'", "''"); } if (PlayerPrefs.HasKey("todoList")) { PlayerPrefs.SetString("todoList", savedString); } QueryInfo.CallSetXML(this); }