Python Check If Input Is String