dot-rename_last_group_as_variable function

Rename Last Group to Variable