in reply to simpler regex

1 while $name =~ s/(^| )(.)( |$)/$1$2\.$3/;
Boris