If Type String Python Methods