Compiling in 3.1
something doesn't like minus indeces in String.substri