My mistake!

Since the message is split by spaces line[0] wont work.