while (my $organized = ) { $organized=~s/(\s)\w+/$1z/g; print $organized; }