Test 5 implemented that causes String index out of  range in Scanner.