fix print str(40).reverse() bug

the function above can now be run