Python Check If Input Is A String