Why is this not work
It is but you aren't seeing anything because:
'hey' != '$i'
Also if your $i wasn't in single quotes (making it's value '$i' literally)
'hey' != 'a'; 'hey' != 'b'; 'hey' != 'c'; ... 'hey' != 'z';