This should not be needed - if `str_a` is NULL, then `offset_a` will be -1.