Prints the given string with the given prefix text - to the console, if its available.
void printString(const string &prefix, const string &str)