str_cat str_cpy implementation