In such a case you can use a conditional breakpoint in your ide. This is a really useful feature of ide that's not always well known.
You set a breakpoint and you want it to suspend the application only under some condition, in this case the parameter of the println method being your 'mysterious ufindable string'
In the case of Intelllij IDEA this would look like this: