Dynamic content

This little piece of code does not seem to be working
[% if contact.contact_type contains “Student” %]
1
[% elsif contact.contact_type contains “Furniture Agent” %]
2
[% endif %]

while this code works just fine

[% if contact.owner.uid == “1” %]
yes
[% elsif contact.owner.uid == “2” %]
no
[% endif %]

also this code work just fine

Basically the code does not work only when I use the field
contact.contact_type

Can anyone help? Thanks