Fixed exception on empty sting and max_length other way
setup.py was refactored