check if is string in py3.4 compatible way