GREEN : fixed Add func. to return 0 if str is empty and 7 otherwise
(to pass the test)