Add python2&3 compatible isstr