Fixed Resource ui some. use string.equals

to compare strings