in reply to Useless use of string in void context at
Perhaps the missing print in the else clause? You provide the string, but not print in front of it.