Create a validation of matrix

Remosves world characters from matrix.
Also create a smarty size of matrix when gauss instance.