if ($text !=~ m/$firstname/ && $type eq "login") { $text = "$firstname: " . $text; }