This AutoLISP routine is quite simpler than RENAME command in AutoCAD.
Load Layren.lsp and type LAYREN command to begin.