If i is equal to zero then this will call Left() with -1 as the length parameter. This will result in an Invalid ...
stackoverflow.com