There are several solutions already available in this forum.
Please use the search function with words like swap firstname lastname
And please be aware the many exceptions that exists beside group names, like artists with multiple parts in the name as "The Artist formerly known as Prince" or combinations like "Bob Marley & The Wailers".
BTW: Do you remember your own similar question here: