Function template that multiplies string matrices with T matrices. Returns string matrix