Add constructor to test the String class