Using six for string type check