Deleted unneccessary function copystringtochararray