$n =~ s/^$a$/$b/i; $n =~ s/ $a / $b /i; $n =~ s/ $a$/ $b/i; $n =~ s/^$a /$b /i;