Getting the string value from a void on a class does not output correctly

welcome to shbcf.ru