Check If Input Is String Python