    for(int i = 0; i < capacity; i++){
        
        if (src[i] == '\0')
        {
            dest[i] = '\0';
        }
        else{
            dest[i] = src[i];
        }
    }
    dest[capacity] = '\0';
    return dest;