Widget view if statement

HI I am trying to write the Widget view for my output but struggling with a formatting element

		str = weatherData[2];
if (weatherData[2] == "RISING") {
       	drawStr(dc, 50, 24, G.FONT_SYSTEM_TINY, G.COLOR_RED, str, G.TEXT_JUSTIFY_CENTER | G.TEXT_JUSTIFY_VCENTER);
}else {
	 	 str =weatherData[2];
	 	drawStr(dc, 50, 24, G.FONT_SYSTEM_TINY, G.COLOR_BLUE, str, G.TEXT_JUSTIFY_CENTER | G.TEXT_JUSTIFY_VCENTER);
}

basically the variable weatherData[2] is set to "RISING" but the if statement still jumps to the else and colours the output blue

what am i doing wrong?