correcting content of thrown string in diagonaliseJac