For information, the string returned by the SelectedItem function when you select an item in a Spinner (previously filled with a .txt file UTF8 encoded) has a particularity : a char is automaticaly added at the beginning of the string (ASCII code 63 - ?).
This char doesn't appear (in debugger for example), but it's here (string lenght is +1) and made unable string comparaison.
You must remove this char with simple :
txt = txt.SubString(1)