Today the string.substring function takes the second and third argument as start and length but it should start and end.