Added error checking for total size of arg string