I published a script to modify text in NPM so it doesn't show FQDN info in node names. I don't see why the process can't be modified and applied to anything you're interested in adjusting.
Check it out here and see if there's a way you can follow the logic and adjust it to apply to your needs.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process. Learn more today by joining now.