added co_str_len macro