test case updated to accommodate entire length of string