Added new string manipulation to decoder and encoder