Well, first off all I´m not looking for anything. The code I posted is tried and true. I´ve used it countless times in ArmA2 and just copied it over to my Arma3 mission, where it does nothing.
Secondly, I´ve tested your example and it printed """" aka an empty string, just as described by the OP. I can´t explain the different results, unless you accidentally started ArmA2 ;)
In any case the problem persists, even if it´s not 100% reproducible.