• I think the STUFF function is what you are looking for.

    declare @txt varchar(20) = 'RA99999-99'

    select STUFF(@txt, 3, 0, '0')