changeed to get mxCHAR_CLASS as a normal String type instad of Tensor