Added a CopyString overload and a StringLength function

added malloc to copystring were needed.