add mym_str_t copy function with protection