added tests for the isValid() method.
added tests on the String() method. More coverage & more refactor.