Added string output function