are you doing it like
where r.customer like t.customer||'%'