$n =~ s/(^|(?<= ))$a((?= )|$))/$b/i;