Ok so I'm making a little element quiz in the console that asks what the name of the element is after it gives you the element symbol, it's being read off a file and each line says the elements symbol and then the elements name
(it looks like this)
Th Thorium
My question is how would I go about having it print out the element symbol and then compare the users answer to the element name, any help would be greatly appreciated.