Updated string1.py to Python 3