Fixed escaped null strings
Added string char counting to support long string error check