Given a string as a sentence parameter, the program doesn't go to if clause. Need to change if condition to type() or isinstance(). 
Given a string as a sentence parameter, the program doesn't go to if clause.

Need to change if condition to type() or isinstance().