Prova a trimmarli
if Ucase(Trim(RScontrol("nome"))) = Ucase(Trim(nome)) then