substring exception String index out of range: -1)

Version imprimable