Check If Input Is A String Python