Changed string case functions to ascii for Python 3 support