I find "OK" confusing here. Perhaps make it: "Invalid: ($test)\n" ? (And I suppose above you could then use: "Valid: ($test)\n".